diff options
Diffstat (limited to 'modules/gallery/helpers/locales.php')
| -rw-r--r-- | modules/gallery/helpers/locales.php | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/modules/gallery/helpers/locales.php b/modules/gallery/helpers/locales.php index f0807c99..2de029ff 100644 --- a/modules/gallery/helpers/locales.php +++ b/modules/gallery/helpers/locales.php @@ -225,11 +225,11 @@ class locales_Core {      $locale = self::cookie_locale();      // 2. Check the user's preference      if (!$locale) { -      $locale = user::active()->locale; +      $locale = identity::active_user()->locale;      }      // 3. Check the browser's / OS' preference      if (!$locale) { -      $locale = locales::locale_from_http_request(); +      $locale = self::locale_from_http_request();      }      // If we have any preference, override the site's default locale      if ($locale) { | 
