1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 07:06:30 +02:00

Regex fixes and path fix for TinyMce.

This commit is contained in:
Cameron
2020-12-18 13:07:45 -08:00
parent 5988595989
commit 7238743542
9 changed files with 13 additions and 10 deletions

View File

@@ -2285,7 +2285,7 @@ class e_db_mysql implements e_db
$row = $this->fetch('num');
$qry = $row[1];
// $qry = str_replace($old, $new, $qry);
$qry = preg_replace("#CREATE\sTABLE\s`{0,1}".$old."`{0,1}\s#", "CREATE TABLE {$new} ", $qry, 1); // More selective search
$qry = preg_replace("#CREATE\sTABLE\s`?".$old."`?\s#", "CREATE TABLE {$new} ", $qry, 1); // More selective search
}
else
{