From: dj3c1t Date: Sun, 15 Jun 2014 12:35:15 +0000 (+0200) Subject: titre du site par defaut X-Git-Tag: sourceml.1.4.1 X-Git-Url: http://git.dj3c1t.com/?p=mw_sourceml;a=commitdiff_plain titre du site par defaut --- diff --git a/app/config.xml b/app/config.xml index fee782d..687e7a1 100644 --- a/app/config.xml +++ b/app/config.xml @@ -1,7 +1,7 @@ - 1.4.0 + 1.4.1 parent diff --git a/mw_sourceml.php b/mw_sourceml.php index 66db9de..66392d4 100644 --- a/mw_sourceml.php +++ b/mw_sourceml.php @@ -77,11 +77,7 @@ public function enable($env){ $data = $env->data(); - if( - ($data->config("site_name") == "mtweb") - && (($plugins = $env->plugins()) !== false) - && (count($plugins) == 1) - ){ + if($data->config("site_name") == "mtweb"){ $data->set_config("site_name", "SourceML"); } return true; @@ -89,11 +85,7 @@ function disable($env){ $data = $env->data(); - if( - ($data->config("site_name") == "SourceML") - && (($plugins = $env->plugins()) !== false) - && (count($plugins) == 1) - ){ + if($data->config("site_name") == "SourceML"){ $data->set_config("site_name", "mtweb"); } return true;