// Fix display of some tables in install/dev

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13552 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie committed 2012-02-23 13:00:45 +00:00
1 parent 2a760a56b4
commit c5beb6b4e0
1 file changed
+6 -3
+6 -3
View File
@@ -1,6 +1,6 @@
<?php <?php
/* /*
* 2007-2012 PrestaShop * 2007-2011 PrestaShop
* *
* NOTICE OF LICENSE * NOTICE OF LICENSE
* *
@@ -660,8 +660,11 @@ class InstallXmlLoader
foreach (Db::getInstance()->executeS($sql) as $row) foreach (Db::getInstance()->executeS($sql) as $row)
{ {
$table = current($row); $table = current($row);
if (preg_match('#^'._DB_PREFIX_.'(.+?)(_lang)?$#i', $table, $m) && !preg_match('#(_group_shop|_shop)$#i', $table)) if (preg_match('#^'._DB_PREFIX_.'(.+?)(_lang)?$#i', $table, $m))
$tables[$m[1]] = (isset($m[2]) && $m[2]) ? true : false; if (preg_match('#^'._DB_PREFIX_.'(.+?)(_group_shop|_shop)$#i', $table, $m2) && !isset($tables[$m2[1]]))
$tables[$m[1]] = (isset($m[2]) && $m[2]) ? true : false;
else
$tables[$m[1]] = (isset($m[2]) && $m[2]) ? true : false;
} }
} }