OSDN Git Service

Fix PDO switch problem and nclude UTF-8 multibyte processing.
[nucleus-jp/nucleus-jp-ancient.git] / utf8 / install / index.php
index 16df611..e3a4a9a 100755 (executable)
@@ -841,7 +841,7 @@ function doInstall() {
                $config_data .= "   \$MYSQL_DATABASE = '" . $mysql_database . "';\n";\r
                $config_data .= "   \$MYSQL_PREFIX   = '" . (($mysql_usePrefix == 1) ? $mysql_prefix : '') . "';\n";\r
                $config_data .= "   // new in 3.50. first element is db handler, the second is the db driver used by the handler\n";\r
-               $config_data .= "   // default is \$MYSQL_HANDLER = array('mysql','mysql');\n";\r
+               $config_data .= "   // default is \$MYSQL_HANDLER = array('mysql','');\n";\r
                $config_data .= "   //\$MYSQL_HANDLER = array('mysql','mysql');\n";\r
                $config_data .= "   //\$MYSQL_HANDLER = array('pdo','mysql');\n";\r
                $config_data .= "   \$MYSQL_HANDLER = array('".$MYSQL_HANDLER[0]."','".$MYSQL_HANDLER[1]."');\n";\r
@@ -908,6 +908,10 @@ function doInstall() {
        $MYSQL_DATABASE = '<b><?php echo $mysql_database?></b>';\r
        $MYSQL_PREFIX   = '<b><?php echo ($mysql_usePrefix == 1)?$mysql_prefix:''?></b>';\r
 \r
+       // new in 3.50. first element is db handler, the second is the db driver used by the handler\r
+       // default is $MYSQL_HANDLER = array('mysql','');\r
+       $MYSQL_HANDLER = array('<?php echo $MYSQL_HANDLER[0];?>','<?php echo $MYSQL_HANDLER[1];?>');\r
+\r
        // main nucleus directory\r
        $DIR_NUCLEUS = '<b><?php echo $config_adminpath?></b>';\r
 \r