// MERGE with trunk revision 7754
This commit is contained in:
@@ -171,15 +171,7 @@ class AdminPreferences extends AdminTab
|
||||
{
|
||||
$context = Context::getContext();
|
||||
$languages = Language::getLanguages(false);
|
||||
if (!Configuration::get('PS_FORCE_SMARTY_2'))
|
||||
{
|
||||
$files = scandir(_PS_THEME_DIR_);
|
||||
foreach ($files AS $file)
|
||||
if (!preg_match('/^\..*/', $file))
|
||||
$context->smarty->clearCache($file);
|
||||
}
|
||||
else
|
||||
$context->smarty->clear_all_cache();
|
||||
Tools::clearCache($context->smarty);
|
||||
|
||||
/* Check required fields */
|
||||
foreach ($fields AS $field => $values)
|
||||
|
||||
Reference in New Issue
Block a user