summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-13 13:05:37 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-13 13:05:37 -0700
commitdf302d28e62f9bd83d2d504578aec8e6434711bd (patch)
tree51608f41e96adefe5c800ecac58d4f3c4b2f7cc0 /modules
parent673cea0a2ba5d83b99c2ec8666a3d175756fdcaa (diff)
remove duplicate function definition
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/helpers/locales.php19
1 files changed, 1 insertions, 18 deletions
diff --git a/modules/gallery/helpers/locales.php b/modules/gallery/helpers/locales.php
index 17286adf..2cd8b0c2 100644
--- a/modules/gallery/helpers/locales.php
+++ b/modules/gallery/helpers/locales.php
@@ -138,7 +138,7 @@ class locales_Core {
static function set_request_locale() {
// 1. Check the session specific preference (cookie)
- $locale = user::cookie_locale();
+ $locale = self::cookie_locale();
// 2. Check the user's preference
if (!$locale) {
$locale = user::active()->locale;
@@ -237,23 +237,6 @@ class locales_Core {
return array(null, 0);
}
- static function set_request_locale() {
- // 1. Check the session specific preference (cookie)
- $locale = self::cookie_locale();
- // 2. Check the user's preference
- if (!$locale) {
- $locale = user::active()->locale;
- }
- // 3. Check the browser's / OS' preference
- if (!$locale) {
- $locale = locales::locale_from_http_request();
- }
- // If we have any preference, override the site's default locale
- if ($locale) {
- I18n::instance()->locale($locale);
- }
- }
-
static function cookie_locale() {
$cookie_data = Input::instance()->cookie("g_locale");
$locale = null;