enable other activity report system
This commit is contained in:
parent
1a8189c759
commit
9386b1b4cd
20
_prepend.php
20
_prepend.php
@ -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');
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user