From 435119ff3ced53792eb87acc94825f7e0efb35d2 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 13 Oct 2009 14:03:25 -0700 Subject: remove the cookie_locale which is now in the locales helper --- modules/gallery/helpers/user.php | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'modules/gallery') 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 -- cgit v1.2.3