fix option

This commit is contained in:
Jean-Christian Paul 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->auth->check('admin',$core->blog->id)
); );
$core->addBehavior('adminDashboardOptionsForm', ['activityReportAdmin', 'adminDashboardOptionsForm']); if ($core->activityReport->getSetting('active')) {
$core->addBehavior('adminAfterDashboardOptionsUpdate', ['activityReportAdmin', 'adminAfterDashboardOptionsUpdate']); $core->addBehavior('adminDashboardContents', ['activityReportAdmin', 'adminDashboardContents']);
$core->addBehavior('adminDashboardOptionsForm', ['activityReportAdmin', 'adminDashboardOptionsForm']);
$core->addBehavior('adminAfterDashboardOptionsUpdate', ['activityReportAdmin', 'adminAfterDashboardOptionsUpdate']);
}
class activityReportAdmin class activityReportAdmin
{ {