diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-05-28 07:15:00 +0800 |
---|---|---|
committer | Gallery Role Account <gallery@menalto.com> | 2009-05-28 11:07:09 +0800 |
commit | 4eedf804e1f26d95de6803e48c608d893c53b7d0 (patch) | |
tree | 6bd8b55bca9568d2abc65a63bd17bcfe928e7285 /modules/gallery/helpers/locale.php | |
parent | 3413fe6bfd423d45d083ff4ed62c0f72c2cc272f (diff) |
Update all references to the core application to now point to the
gallery module. This type of mass update is prone to some small bugs.
Signed-off-by: Gallery Role Account <gallery@menalto.com>
Diffstat (limited to 'modules/gallery/helpers/locale.php')
-rw-r--r-- | modules/gallery/helpers/locale.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gallery/helpers/locale.php b/modules/gallery/helpers/locale.php index b707637f..2ba0f255 100644 --- a/modules/gallery/helpers/locale.php +++ b/modules/gallery/helpers/locale.php @@ -37,8 +37,8 @@ class locale_Core { static function installed() { $available = self::available(); - $default = module::get_var("core", "default_locale"); - $codes = explode("|", module::get_var("core", "installed_locales", $default)); + $default = module::get_var("gallery", "default_locale"); + $codes = explode("|", module::get_var("gallery", "installed_locales", $default)); foreach ($codes as $code) { if (isset($available->$code)) { $installed[$code] = $available[$code]; @@ -49,10 +49,10 @@ class locale_Core { static function update_installed($locales) { // Ensure that the default is included... - $default = module::get_var("core", "default_locale"); + $default = module::get_var("gallery", "default_locale"); $locales = array_merge($locales, array($default)); - module::set_var("core", "installed_locales", join("|", $locales)); + module::set_var("gallery", "installed_locales", join("|", $locales)); } // @todo Might want to add a localizable language name as well. |