enable other activity report system

This commit is contained in:
Jean-Christian Denis 2021-09-03 21:35:13 +02:00
parent 1a8189c759
commit 9386b1b4cd

View file

@ -20,18 +20,20 @@ $__autoload['activityReport'] = $d . 'class.activity.report.php';
$__autoload['activityReportBehaviors'] = $d . 'class.activity.report.behaviors.php'; $__autoload['activityReportBehaviors'] = $d . 'class.activity.report.behaviors.php';
try { try {
$core->activityReport = new activityReport($core); if (!defined('ACTIVITY_REPORT')) {
$core->activityReport = new activityReport($core);
$core->url->register( $core->url->register(
'activityReport', 'activityReport',
'reports', 'reports',
'^reports/((atom|rss2)/(.+))$', '^reports/((atom|rss2)/(.+))$',
['activityReportPublicUrl', 'feed'] ['activityReportPublicUrl', 'feed']
); );
define('ACTIVITY_REPORT', true); define('ACTIVITY_REPORT', true);
activityReportBehaviors::registerBehaviors($core); activityReportBehaviors::registerBehaviors($core);
}
} catch (Exception $e) { } catch (Exception $e) {
//throw new Exception('Failed to launch activityReport'); //throw new Exception('Failed to launch activityReport');
} }