diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-13 14:03:25 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-13 14:03:25 -0700 |
commit | 435119ff3ced53792eb87acc94825f7e0efb35d2 (patch) | |
tree | 5c8e5bebee76223397a167021e24485a99de1777 /modules | |
parent | 819d87cd9a940b42c40f82d077941f7e51aaa256 (diff) |
remove the cookie_locale which is now in the locales helper
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/helpers/user.php | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/modules/gallery/helpers/user.php b/modules/gallery/helpers/user.php index f0509030..84a29efc 100644 --- a/modules/gallery/helpers/user.php +++ b/modules/gallery/helpers/user.php @@ -175,22 +175,6 @@ class user_Core { return Session::instance()->get("group_ids", array(1)); } - - static function cookie_locale() { - $cookie_data = Input::instance()->cookie("g_locale"); - $locale = null; - if ($cookie_data) { - if (preg_match("/^([a-z]{2,3}(?:_[A-Z]{2})?)$/", trim($cookie_data), $matches)) { - $requested_locale = $matches[1]; - $installed_locales = locales::installed(); - if (isset($installed_locales[$requested_locale])) { - $locale = $requested_locale; - } - } - } - return $locale; - } - /** * Make sure that we have a session and group_ids cached in the session. This is one * of the first calls to reference the user so call the Identity::instance to load the |