Merge branch 'development' of https://github.com/PrestaShop/PrestaShop into development

This commit is contained in:
Francois Gaillard
2013-04-18 18:23:18 +02:00
10 changed files with 25 additions and 33 deletions
+5 -3
View File
@@ -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;
}