Merge branch 'development' of https://github.com/PrestaShop/PrestaShop into development
This commit is contained in:
+5
-3
@@ -2121,9 +2121,12 @@ exit;
|
||||
*/
|
||||
public static function clearCache($smarty = null, $tpl = false, $cache_id = null, $compile_id = null)
|
||||
{
|
||||
if (is_null($smarty))
|
||||
if ($smarty === null)
|
||||
$smarty = Context::getContext()->smarty;
|
||||
|
||||
|
||||
if ($smarty === null)
|
||||
return;
|
||||
|
||||
if (!$tpl && $cache_id === null && $compile_id === null)
|
||||
return $smarty->clearAllCache();
|
||||
|
||||
@@ -2456,4 +2459,3 @@ function cmpPriceDesc($a, $b)
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user