early step to move settings do plugins config page

This commit is contained in:
Jean-Christian Denis 2021-09-03 10:04:56 +02:00
parent 610e8a2124
commit 438e57e702
2 changed files with 27 additions and 2 deletions

27
_config.php Normal file
View file

@ -0,0 +1,27 @@
<?php
/**
* @brief activityReport, a plugin for Dotclear 2
*
* @package Dotclear
* @subpackage Plugin
*
* @author Jean-Christian Denis and contributors
*
* @copyright Jean-Christian Denis
* @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html
*/
if (!defined('DC_CONTEXT_MODULE')) {
return null;
}
if (!activityReport::hasMailer()) {
echo '<p class="error">' . __('This server has no mail function, activityReport not send email report.') . '</p>';
}
activityReportLib::settingTab($core, __('Settings'));
if ($core->auth->isSuperAdmin()) {
activityReportLib::settingTab($core, __('Super settings'), true);
}

View file

@ -43,11 +43,9 @@ if (!activityReport::hasMailer()) {
echo '<p class="error">' . __('This server has no mail function, activityReport not send email report.') . '</p>';
}
activityReportLib::settingTab($core, __('Settings'));
activityReportLib::logTab($core, __('Logs'));
if ($core->auth->isSuperAdmin()) {
activityReportLib::settingTab($core, __('Super settings'), true);
activityReportLib::logTab($core, __('Super logs'), true);
}
echo '</body></html>';