* finish task #1794.

This commit is contained in:
wyd621
2014-03-06 06:01:17 +00:00
parent f70190800e
commit b159b7abb1
2 changed files with 8 additions and 2 deletions
+4
View File
@@ -370,6 +370,10 @@ class installModel extends model
{
$table = str_replace('--', '', $table);
}
/* Skip sql that is note. */
if(preg_match('/^--|^#|^\/\*/', $table)) continue;
$table = str_replace('`zt_', $this->config->db->name . '.`zt_', $table);
$table = str_replace('zt_', $this->config->db->prefix, $table);
if(!$this->dbh->query($table)) return false;