From 0d78cfb3d2844b2faaddf9f18c3c2c3fcb88f708 Mon Sep 17 00:00:00 2001 From: mMarinetti Date: Thu, 22 Dec 2011 22:06:08 +0000 Subject: [PATCH] // 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 --- install-dev/php/create_multistore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-dev/php/create_multistore.php b/install-dev/php/create_multistore.php index 110825663..0938100da 100755 --- a/install-dev/php/create_multistore.php +++ b/install-dev/php/create_multistore.php @@ -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