From 9cb43ad69fa04b93c6c71f588697ef8f7e9c2237 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Tue, 19 Jun 2012 15:36:42 +0000 Subject: [PATCH] [-] BO : #PSCFV-2851 : fix bug when export a theme --- modules/themeinstallator/themeinstallator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/themeinstallator/themeinstallator.php b/modules/themeinstallator/themeinstallator.php index 9c3197fad..6e7aa6649 100644 --- a/modules/themeinstallator/themeinstallator.php +++ b/modules/themeinstallator/themeinstallator.php @@ -1504,7 +1504,7 @@ class ThemeInstallator extends Module $id = 0; foreach ($this->theme_list as $row) { - if (!is_dir(_PS_ALL_THEMES_DIR_.$row) || !file_exists(_PS_ALL_THEMES_DIR_.$row.'/index.tpl') || $row == $this->default_theme || $row == Tools::getValue('mainTheme')) + if (!is_dir(_PS_ALL_THEMES_DIR_.$row) || !file_exists(_PS_ALL_THEMES_DIR_.$row.'/index.tpl')) continue; $this->_html .= 'themes['.$id.'] = "'.$row.'";';