// Fix display of some tables in install/dev

This commit is contained in:
rMalie committed 2012-02-23 13:00:45 +00:00
1 parent 478049cac9
commit c39f9ab3d2
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;
} }
} }