fix option

This commit is contained in:
Jean-Christian Denis 2021-09-03 23:27:22 +02:00
parent 54747275eb
commit 0dc288c3a1

View file

@ -29,8 +29,11 @@ $_menu['Plugins']->addItem(
$core->auth->check('admin',$core->blog->id)
);
$core->addBehavior('adminDashboardOptionsForm', ['activityReportAdmin', 'adminDashboardOptionsForm']);
$core->addBehavior('adminAfterDashboardOptionsUpdate', ['activityReportAdmin', 'adminAfterDashboardOptionsUpdate']);
if ($core->activityReport->getSetting('active')) {
$core->addBehavior('adminDashboardContents', ['activityReportAdmin', 'adminDashboardContents']);
$core->addBehavior('adminDashboardOptionsForm', ['activityReportAdmin', 'adminDashboardOptionsForm']);
$core->addBehavior('adminAfterDashboardOptionsUpdate', ['activityReportAdmin', 'adminAfterDashboardOptionsUpdate']);
}
class activityReportAdmin
{