// Context part 31
This commit is contained in:
1 parent
a9a1706085
commit
3d733ae6e2
57 files changed
+200
-165
No files matched your search
+3
-1
@@ -284,8 +284,10 @@ class ToolsCore
|
||||
*
|
||||
* @return string iso code
|
||||
*/
|
||||
public static function setCookieLanguage($cookie)
|
||||
public static function setCookieLanguage($cookie = null)
|
||||
{
|
||||
if (!$cookie)
|
||||
$cookie = Context::getContext()->cookie;
|
||||
/* If language does not exist or is disabled, erase it */
|
||||
if ($cookie->id_lang)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user