From 2a3a39d5557537dc4305b304531390648c661bfc Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 12 Sep 2021 15:25:52 +0200 Subject: [PATCH] fix up-to-date distrib modules list --- inc/class.dc.translater.php | 36 +++++------------------------------- 1 file changed, 5 insertions(+), 31 deletions(-) diff --git a/inc/class.dc.translater.php b/inc/class.dc.translater.php index 3294ce3..ce87eac 100644 --- a/inc/class.dc.translater.php +++ b/inc/class.dc.translater.php @@ -162,37 +162,7 @@ class dcTranslater ) ); # List of default modules of Dotclear - public static $default_dotclear_modules = array( - 'plugin' => array( - 'aboutConfig', - 'akismet', - 'antispam', - 'attachments', - 'blogroll', - 'blowupConfig', - 'breadcrumb', - 'dcCKEditor', - 'dclegacy', - 'dcLegacyEditor', - 'fairTrackbacks', - 'importExport', - 'maintenance', - 'pages', - 'pings', - 'simpleMenu', - 'tags', - 'themeEditor', - 'userPref', - 'widgets' - ), - 'theme' => array( - 'default', - 'berlin', - 'blueSilence', - 'customCSS', - 'ductile' - ) - ); + public static $default_dotclear_modules = ['plugin' => [], 'theme' => []]; # List of modules (from plugins,thems, by dcModule::getModules) private $modules = array(); @@ -202,6 +172,10 @@ class dcTranslater # Construtor function __construct($core) { + self::$default_dotclear_modules = [ + 'plugin' => explode(',', DC_DISTRIB_PLUGINS), + 'theme' => explode(',', DC_DISTRIB_THEMES) + ]; $this->core =& $core; $core->blog->settings->addNamespace('translater'); $this->loadModules();