// Merge -> revision 8342

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8344 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rMalie
2011-09-05 14:56:02 +00:00
parent 371f9a5397
commit 79fd72e461
46 changed files with 1299 additions and 249 deletions
+3 -2
View File
@@ -95,9 +95,9 @@ class LanguageManager
*/
private function setLanguage()
{
if ( !empty($_GET['language']))
if (isset($_GET['language']))
$id_lang = (int)($_GET['language'])>0 ? $_GET['language'] : 0;
if (empty($id_lang))
if (!isset($id_lang))
$id_lang = ($this->getIdByHAL());
$this->lang = $this->xml_file->lang[(int)($id_lang)];
}
@@ -107,3 +107,4 @@ class LanguageManager
return ($this->lang == NULL) ? false : dirname(__FILE__).$this->lang['trad_file'];
}
}