From 47ff07407575ed26a3201f2e53bed6afd3ab67dd Mon Sep 17 00:00:00 2001 From: dj3c1t Date: Sun, 15 Jun 2014 14:35:15 +0200 Subject: [PATCH] titre du site par defaut --- app/config.xml | 2 +- mw_sourceml.php | 12 ++---------- 2 files changed, 3 insertions(+), 11 deletions(-) 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; -- 2.1.4