From 84f10e908a1f79d3e630ae5c02646fac0247c04f Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Thu, 21 Feb 2013 12:01:32 +0100 Subject: [PATCH] [*] Installer : mbstring check added (optionnal) #PSCFV-6489 --- classes/ConfigurationTest.php | 5 +++++ install-dev/controllers/http/system.php | 1 + 2 files changed, 6 insertions(+) diff --git a/classes/ConfigurationTest.php b/classes/ConfigurationTest.php index 57e791a52..4ee01a859 100644 --- a/classes/ConfigurationTest.php +++ b/classes/ConfigurationTest.php @@ -294,6 +294,11 @@ class ConfigurationTestCore return ConfigurationTest::test_dir($dir); } + public static function test_mcrypt() + { + return function_exists('mb_strtolower'); + } + public static function test_mcrypt() { return function_exists('mcrypt_encrypt'); diff --git a/install-dev/controllers/http/system.php b/install-dev/controllers/http/system.php index 38dc09762..fbdf19a5c 100644 --- a/install-dev/controllers/http/system.php +++ b/install-dev/controllers/http/system.php @@ -117,6 +117,7 @@ class InstallControllerHttpSystem extends InstallControllerHttp 'register_globals' => $this->l('PHP register global option is on'), 'gz' => $this->l('GZIP compression is not activated'), 'mcrypt' => $this->l('Mcrypt extension is not enabled'), + 'mbstring' => $this->l('Mbstring extension is not enabled'), 'magicquotes' => $this->l('PHP magic quotes option is enabled'), 'dom' => $this->l('Dom extension is not loaded'), 'pdo_mysql' => $this->l('PDO MySQL extension is not loaded'),