diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2010-01-24 14:57:13 -0800 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-24 14:57:13 -0800 |
| commit | cc912935731c216a57e4c291548ec503a0c1607e (patch) | |
| tree | 0ebfdf14a4f8cd183df31cde5be8e3226641d580 /modules/gallery/helpers/locales.php | |
| parent | 5b84919d6e55a8c43f60cf8b695c3696340d001b (diff) | |
| parent | eb32e1052df4da268f01a84b809d756d9c9b85b7 (diff) | |
Merge branch 'bharat_dev' of git@github.com:gallery/gallery3 into bharat_dev
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 8d76e333..5c8c227a 100644 --- a/modules/gallery/helpers/locales.php +++ b/modules/gallery/helpers/locales.php @@ -41,7 +41,7 @@ class locales_Core { $default = module::get_var("gallery", "default_locale"); $codes = explode("|", module::get_var("gallery", "installed_locales", $default)); foreach ($codes as $code) { - if (isset($available->$code)) { + if (isset($available[$code])) { $installed[$code] = $available[$code]; } } @@ -127,7 +127,7 @@ class locales_Core { } $locale or $locale = Gallery_I18n::instance()->locale(); - return self::$locales["$locale"]; + return self::$locales[$locale]; } static function is_rtl($locale=null) { |
