[+] CORE : Fixed cache_id

This commit is contained in:
gRoussac
2013-11-12 17:09:38 +01:00
parent fc193d5c8b
commit 036e2362c9
16 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -82,7 +82,7 @@ class StateCore extends ObjectModel
{
if (!$id_state)
return false;
$cache_id = __CLASS__.__FUNCTION__.(int)$id_state;
$cache_id = 'State::getNameById_'.(int)$id_state;
if (!Cache::isStored($cache_id))
{
$result = Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue('
@@ -105,7 +105,7 @@ class StateCore extends ObjectModel
{
if (empty($state))
return false;
$cache_id = __CLASS__.__FUNCTION__.pSQL($state);
$cache_id = 'State::getNameById_'.pSQL($state);
if (!Cache::isStored($cache_id))
{
$result = (int)Db::getInstance()->getValue('