OSDN Git Service

Support using mb-emulator when installing Nucleus.
[nucleus-jp/nucleus-jp-ancient.git] / 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