[-] Classes : all classes and controllers now use their name in static calls instead of self (improve override) #PSFV-376

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12552 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2012-01-19 10:14:10 +00:00
parent 81832703f2
commit 6887541bdd
82 changed files with 432 additions and 431 deletions
+2 -2
View File
@@ -1604,7 +1604,7 @@ class AdminControllerCore extends Controller
// @todo remove global keyword in translations files and use static
global $_LANGADM;
self::initModuleCacheTab();
AdminController::initModuleCacheTab();
if (!is_array($_LANGADM))
{
@@ -1661,7 +1661,7 @@ class AdminControllerCore extends Controller
$class = substr($class, 0, -10);
else if ($class == 'AdminTab')
$class = substr(get_class($this), 0, -10);
return self::translate($string, $class, $addslashes, $htmlentities);
return AdminController::translate($string, $class, $addslashes, $htmlentities);
}
/**