kUtRL/inc/lib.kutrl.activityreport.php

32 lines
841 B
PHP
Raw Normal View History

2021-08-25 23:06:22 +00:00
<?php
/**
* @brief kUtRL, a plugin for Dotclear 2
2021-11-06 15:43:02 +00:00
*
* @package Dotclear
* @subpackage Plugin
2021-11-06 15:43:02 +00:00
*
* @author Jean-Christian Denis and contributors
2021-11-06 15:43:02 +00:00
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
2021-08-25 23:06:22 +00:00
# This file is used with plugin activityReport
2021-08-27 22:06:46 +00:00
if (!defined('DC_RC_PATH')) {
return null;
}
2021-08-25 23:06:22 +00:00
2022-12-22 14:37:09 +00:00
dcCore::app()->__get('activityReport')->addGroup('kutrl', __('Plugin kUtRL'));
2021-08-25 23:06:22 +00:00
# from BEHAVIOR kutrlAfterCreateShortUrl in kUtRL/inc/lib.kutrl.srv.php
2022-12-22 14:37:09 +00:00
dcCore::app()->__get('activityReport')->addAction(
2021-08-27 22:06:46 +00:00
'kutrl',
'create',
__('Short link creation'),
__('New short link of type "%s" and hash "%s" was created.'),
'kutrlAfterCreateShortUrl',
2022-12-22 14:37:09 +00:00
function ($rs) {
dcCore::app()->__get('activityReport')->addLog('kutrl', 'create', [$rs->type, $rs->hash]);
2021-08-27 22:06:46 +00:00
}
2022-12-22 14:37:09 +00:00
);