diff --git a/htdocs/admin/syslog.php b/htdocs/admin/syslog.php index 9280a8391e9..cd30af0dfdc 100644 --- a/htdocs/admin/syslog.php +++ b/htdocs/admin/syslog.php @@ -60,8 +60,8 @@ if (is_dir($dir)) $module = new $file; // Show modules according to features level - if ($module->getVersion() == $module::DEVELOPMENT && $conf->global->MAIN_FEATURES_LEVEL < 2) continue; - if ($module->getVersion() == $module::EXPERIMENTAL && $conf->global->MAIN_FEATURES_LEVEL < 1) continue; + if ($module->getVersion() == 'development' && $conf->global->MAIN_FEATURES_LEVEL < 2) continue; + if ($module->getVersion() == 'experimental' && $conf->global->MAIN_FEATURES_LEVEL < 1) continue; $syslogModules[] = $file; } diff --git a/htdocs/core/modules/syslog/logHandler.php b/htdocs/core/modules/syslog/logHandler.php index cc9a209d106..dbca7b306ac 100644 --- a/htdocs/core/modules/syslog/logHandler.php +++ b/htdocs/core/modules/syslog/logHandler.php @@ -7,10 +7,6 @@ require_once DOL_DOCUMENT_ROOT.'/core/modules/syslog/logHandlerInterface.php'; */ class LogHandler { - const STABLE = 'stable'; - const DEVELOPMENT = 'development'; - const EXPERIMENTAL = 'experimental'; - /** * Content of the info tooltip. * @@ -22,13 +18,13 @@ class LogHandler } /** - * Version of the module + * Version of the module ('x.y.z' or 'dolibarr' or 'experimental' or 'development') * * @return string */ public function getVersion() { - return self::EXPERIMENTAL; + return 'development'; } /** diff --git a/htdocs/core/modules/syslog/mod_syslog_chromephp.php b/htdocs/core/modules/syslog/mod_syslog_chromephp.php index ff07301207c..ffbdaba9e22 100644 --- a/htdocs/core/modules/syslog/mod_syslog_chromephp.php +++ b/htdocs/core/modules/syslog/mod_syslog_chromephp.php @@ -17,7 +17,7 @@ class mod_syslog_chromephp extends LogHandler implements LogHandlerInterface */ public function getVersion() { - return self::STABLE; + return 'dolibarr'; } /** diff --git a/htdocs/core/modules/syslog/mod_syslog_file.php b/htdocs/core/modules/syslog/mod_syslog_file.php index 08bc9360c7e..4fbc9a39c4d 100644 --- a/htdocs/core/modules/syslog/mod_syslog_file.php +++ b/htdocs/core/modules/syslog/mod_syslog_file.php @@ -19,7 +19,7 @@ class mod_syslog_file extends LogHandler implements LogHandlerInterface */ public function getVersion() { - return self::STABLE; + return 'dolibarr'; } /** diff --git a/htdocs/core/modules/syslog/mod_syslog_firephp.php b/htdocs/core/modules/syslog/mod_syslog_firephp.php index 2da1cf97804..fc9ee6491d7 100644 --- a/htdocs/core/modules/syslog/mod_syslog_firephp.php +++ b/htdocs/core/modules/syslog/mod_syslog_firephp.php @@ -17,7 +17,7 @@ class mod_syslog_firephp extends LogHandler implements LogHandlerInterface */ public function getVersion() { - return self::STABLE; + return 'dolibarr'; } /** diff --git a/htdocs/core/modules/syslog/mod_syslog_syslog.php b/htdocs/core/modules/syslog/mod_syslog_syslog.php index bd93d4f36ba..b708d8ac877 100644 --- a/htdocs/core/modules/syslog/mod_syslog_syslog.php +++ b/htdocs/core/modules/syslog/mod_syslog_syslog.php @@ -17,7 +17,7 @@ class mod_syslog_syslog extends LogHandler implements LogHandlerInterface */ public function getVersion() { - return self::STABLE; + return 'dolibarr'; } /**