OSDN Git Service

Support using mb-emulator when installing Nucleus.
authorkmorimatsu <kmorimatsu@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Tue, 17 Mar 2009 19:44:24 +0000 (19:44 +0000)
committerkmorimatsu <kmorimatsu@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Tue, 17 Mar 2009 19:44:24 +0000 (19:44 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/nucleus-jp/trunk@985 1ca29b6e-896d-4ea0-84a5-967f57386b96

utf8/install.php

index 8aab671..fe6ea8b 100755 (executable)
@@ -480,6 +480,9 @@ function doInstall() {
        $weblog_ping       = postVar('Weblog_ping');\r
 \r
        $_POST = array();\r
+       if (!extension_loaded('mbstring')) {\r
+               include('nucleus/libs/mb_emulator/mb-emulator.php');\r
+       }\r
        if ($charset == 'ujis') {\r
                define('_CHARSET', 'EUC-JP');\r
                $config_sitename = mb_convert_encoding($config_sitename, _CHARSET, 'UTF-8');\r