diff --git a/_admin.php b/_admin.php index 8810160..b69111e 100644 --- a/_admin.php +++ b/_admin.php @@ -29,30 +29,29 @@ dcCore::app()->menu[dcAdmin::MENU_PLUGINS]->addItem( dcCore::app()->addBehavior('adminDashboardFavoritesV2', function ($favs) { $favs->register(basename(__DIR__), [ - 'title' => __('Advanced cleaner'), - 'url' => dcCore::app()->adminurl->get('admin.plugin.' . basename(__DIR__)), - 'small-icon' => dcPage::getPF(basename(__DIR__) . '/icon.png'), - 'large-icon' => dcPage::getPF(basename(__DIR__) . '/icon-big.png'), + 'title' => __('Advanced cleaner'), + 'url' => dcCore::app()->adminurl->get('admin.plugin.' . basename(__DIR__)), + 'small-icon' => dcPage::getPF(basename(__DIR__) . '/icon.png'), + 'large-icon' => dcPage::getPF(basename(__DIR__) . '/icon-big.png'), //'permissions' => dcCore::app()->auth->isSuperAdmin(), ]); }); dcCore::app()->addBehavior('pluginsToolsTabsV2', function () { - $path = DC_PLUGINS_ROOT; - $redir = dcCore::app()->adminurl->get('admin.plugins', [], '#uninstaller'); - $title = ''; - if (!dcCore::app()->blog->settings->__get(basename(__DIR__))->dcAdvancedCleaner_behavior_active) { return null; } - $title = empty($title) ? __('Advanced uninstall') : $title; + + $path = DC_PLUGINS_ROOT; + $redir = dcCore::app()->adminurl->get('admin.plugins', [], '#uninstaller'); + $title = ''; $uninstaller = new dcUninstaller(); $uninstaller->loadModules($path); $modules = $uninstaller->getModules(); $props = $uninstaller->getAllowedActions(); - echo '
' . __('There is no module with uninstall features') . '