fix #8131 - chinese translations
[Pman.Core] / UpdateDatabase / MysqlLinks.php
index 02db548..0bdd508 100644 (file)
@@ -80,7 +80,7 @@ class Pman_Core_UpdateDatabase_MysqlLinks {
         
         $iniCache = isset( $ff->PDO_DataObject) ?  $ff->PDO_DataObject['schema_location'] : $ff->DB_DataObject[$dbini];
         
-        if (strpos($iniCache, DIRECTORY_SEPARATOR) !== false) {
+        if (strpos($iniCache, PATH_SEPARATOR) !== false) {
             echo "SKIP links code - cached ini file has not been created\n";
             return;
         }
@@ -167,7 +167,7 @@ class Pman_Core_UpdateDatabase_MysqlLinks {
         }
         
         $q = DB_DAtaObject::factory('core_enum');
-        $q->query("ALTER TABLE $tbl COMMENT = '{$q->escape($fkstr)}'");
+        $q->query("ALTER TABLE `$tbl` COMMENT = '{$q->escape($fkstr)}'");