summaryrefslogtreecommitdiff
path: root/modules/user/helpers/user.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-13 12:33:00 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-13 12:33:00 -0700
commit2c711d8908137b6ff25941f06fe0a3f9ac02596d (patch)
treef56d813f5ee99e8d401d39c52ec877f1a27998ef /modules/user/helpers/user.php
parent53393a144609c0d8402b14606f52422bf3f28daf (diff)
refactor locale related functionality out of the user module and into the gallery module.
Diffstat (limited to 'modules/user/helpers/user.php')
-rw-r--r--modules/user/helpers/user.php15
1 files changed, 0 insertions, 15 deletions
diff --git a/modules/user/helpers/user.php b/modules/user/helpers/user.php
index c6a7735b..a22e475f 100644
--- a/modules/user/helpers/user.php
+++ b/modules/user/helpers/user.php
@@ -383,19 +383,4 @@ class user_Core {
}
return $salt . md5($salt . $password);
}
-
- 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;
- }
} \ No newline at end of file