OSDN Git Service

CHANGE:DB::formatDateTime()が囲い文字を含む日付文字列を返すように変更。
[nucleus-jp/nucleus-next.git] / install / index.php
index 7dd02e4..569f830 100644 (file)
@@ -931,15 +931,15 @@ function do_install()
         * 6. put needed records\r
         */\r
        /* push first post */\r
-       $query = "INSERT INTO %s VALUES (1, %s, %s, %s, 1, 1, '%s', 0, 0, 0, 1, 0, 1)";\r
+       $query = "INSERT INTO %s VALUES (1, %s, %s, %s, 1, 1, %s, 0, 0, 0, 1, 0, 1)";\r
        $query = sprintf($query,\r
                tableName('nucleus_item'),\r
                DB::quoteValue(_1ST_POST_TITLE),\r
                DB::quoteValue(_1ST_POST),\r
                DB::quoteValue(_1ST_POST2),\r
-               DB::formatDateTime(time())\r
+               DB::formatDateTime()\r
        );\r
-       if ( !DB::execute($query) )\r
+       if ( DB::execute($query) === FALSE )\r
        {\r
                $errinfo = DB::getError();\r
                $errors[] = _INST_ERROR4 . ' (<small>' . $newpost . '</small>): ' . $errinfo[2];\r
@@ -966,7 +966,7 @@ function do_install()
                DB::quoteValue($param->user_email),\r
                DB::quoteValue($param->IndexURL)\r
        );\r
-       if ( !DB::execute($query) )\r
+       if ( DB::execute($query) === FALSE )\r
        {\r
                $errinfo = DB::getError();\r
                $errors[] = _INST_ERROR5 . ': ' . $errinfo[2];\r
@@ -980,7 +980,7 @@ function do_install()
                DB::quoteValue($param->blog_shortname),\r
                DB::quoteValue($param->IndexURL)\r
        );\r
-       if ( !DB::execute($query) )\r
+       if ( DB::execute($query) === FALSE )\r
        {\r
                $errinfo = DB::getError();\r
                $errors[] = _INST_ERROR6 . ': ' . $errinfo[2];\r
@@ -993,7 +993,7 @@ function do_install()
                DB::quoteValue(_GENERALCAT_NAME),\r
                DB::quoteValue(_GENERALCAT_DESC)\r
        );\r
-       if ( !DB::execute($query) )\r
+       if ( DB::execute($query) === FALSE )\r
        {\r
                $errinfo = DB::getError();\r
                $errors[] = _INST_ERROR6 . ': ' . $errinfo[2];\r
@@ -1383,7 +1383,7 @@ function updateConfig($name, $value)
        $query = "UPDATE %s SET value = %s WHERE name = %s";\r
        $query = sprintf($query, tableName('nucleus_config'), DB::quoteValue(trim($value)), DB::quoteValue($name));\r
 \r
-       if ( !DB::execute($query) )\r
+       if ( DB::execute($query) === FALSE )\r
        {\r
                $errinfo = DB::getError();\r
                $errors[] = _INST_ERROR4 . ': ' . $errinfo[2];\r