// Fixed pscleaner method

This commit is contained in:
Damien Metzger
2013-07-30 09:21:41 +02:00
parent b004151695
commit 192940946d
+3 -3
View File
@@ -372,7 +372,7 @@ class PSCleaner extends Module
// @Todo: Remove attachment files, images...
Image::clearTmpDir();
$this->clearAllCaches();
self::clearAllCaches();
return $logs;
}
@@ -529,7 +529,7 @@ class PSCleaner extends Module
break;
}
$this->clearAllCaches();
self::clearAllCaches();
}
// Not called yet
@@ -558,7 +558,7 @@ class PSCleaner extends Module
return $array;
}
protected function clearAllCaches()
protected static function clearAllCaches()
{
$index = file_get_contents(_PS_TMP_IMG_DIR_.'index.php');
Tools::deleteDirectory(_PS_TMP_IMG_DIR_, false);