diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2010-11-28 11:27:25 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2010-11-28 11:27:25 -0800 |
| commit | eb010554ff963a1f73661bf96d99697abb7dfde4 (patch) | |
| tree | cabf85c2dc223cfbb2f649b1c45adfe04ba3e70a /modules/gallery/helpers/locales.php | |
| parent | 76b6daefaa4009fdd8de72b8f25259200a66d477 (diff) | |
Replace self::func() with <helper_name>::func() for all public APIs
and constants to make overloading easier. Fixes #1510.
Diffstat (limited to 'modules/gallery/helpers/locales.php')
| -rw-r--r-- | modules/gallery/helpers/locales.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gallery/helpers/locales.php b/modules/gallery/helpers/locales.php index 5961f449..565e9da8 100644 --- a/modules/gallery/helpers/locales.php +++ b/modules/gallery/helpers/locales.php @@ -212,7 +212,7 @@ class locales_Core { } private static function _locale_match_score($requested_locale, $qvalue, $adjustment_factor) { - $installed = self::installed(); + $installed = locales::installed(); if (isset($installed[$requested_locale])) { return array($requested_locale, $qvalue); } @@ -227,14 +227,14 @@ class locales_Core { static function set_request_locale() { // 1. Check the session specific preference (cookie) - $locale = self::cookie_locale(); + $locale = locales::cookie_locale(); // 2. Check the user's preference if (!$locale) { $locale = identity::active_user()->locale; } // 3. Check the browser's / OS' preference if (!$locale) { - $locale = self::locale_from_http_request(); + $locale = locales::locale_from_http_request(); } // If we have any preference, override the site's default locale if ($locale) { |
