// Context part 7

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7629 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2011-07-15 13:59:26 +00:00
parent 3a922aabfe
commit 20276404a8
24 changed files with 101 additions and 163 deletions
+2 -4
View File
@@ -169,18 +169,16 @@ class AdminPreferences extends AdminTab
*/
protected function _postConfig($fields)
{
global $smarty;
$languages = Language::getLanguages(false);
if (!Configuration::get('PS_FORCE_SMARTY_2'))
{
$files = scandir(_PS_THEME_DIR_);
foreach ($files AS $file)
if (!preg_match('/^\..*/', $file))
$smarty->clearCache($file);
$this->smarty->clearCache($file);
}
else
$smarty->clear_all_cache();
$this->smarty->clear_all_cache();
/* Check required fields */
foreach ($fields AS $field => $values)