// when upgrade, do not add theme dir if its starts by a point, or is named 'prestashop'

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11707 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
mMarinetti
2011-12-22 22:06:08 +00:00
parent 7038b2674b
commit 0d78cfb3d2
+1 -1
View File
@@ -8,7 +8,7 @@ function create_multistore()
$themes = scandir(dirname(__FILE__).'/../../themes');
foreach ($themes AS $theme)
if (is_dir(dirname(__FILE__).'/../../themes/'.$theme) && $theme != '.' && $theme != '..' && $theme != 'prestashop')
if (is_dir(dirname(__FILE__).'/../../themes/'.$theme) && $theme[0] != '.' && $theme != 'prestashop')
$res &= Db::getInstance()->execute('INSERT INTO '._DB_PREFIX_.'theme (`id_theme`, `name`) VALUES(\'\', \''.pSQL($theme).'\')');
$res &= Db::getInstance()->execute('UPDATE '._DB_PREFIX_.'shop
SET