[+] Classes: add local cache system
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10729 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+1
-7
@@ -134,13 +134,7 @@ class AddressCore extends ObjectModel
|
||||
|
||||
/* Get and cache address country name */
|
||||
if ($this->id)
|
||||
{
|
||||
$result = Db::getInstance()->getRow('
|
||||
SELECT `name` FROM `'._DB_PREFIX_.'country_lang`
|
||||
WHERE `id_country` = '.(int)$this->id_country.'
|
||||
AND `id_lang` = '.($id_lang ? (int)$id_lang : Configuration::get('PS_LANG_DEFAULT')));
|
||||
$this->country = $result['name'];
|
||||
}
|
||||
$this->country = Country::getNameById($id_lang ? $id_lang : Configuration::get('PS_LANG_DEFAULT'), $this->id_country);
|
||||
}
|
||||
|
||||
public function add($autodate = true, $null_values = false)
|
||||
|
||||
Reference in New Issue
Block a user