Fixed static config access in Currency and i18n (fixes #8341)

This commit is contained in:
Ingo Schommer 2013-03-26 10:13:00 +01:00
parent a1c5951d83
commit 880702fc74
2 changed files with 2 additions and 2 deletions

View File

@ -1765,7 +1765,7 @@ class i18n extends Object implements TemplateGlobalProvider {
* @return Name of the locale * @return Name of the locale
*/ */
public static function get_locale_name($code) { public static function get_locale_name($code) {
$langs = self::get_locale_list(); $langs = self::config()->all_locales;
return isset($langs[$code]) ? $langs[$code] : false; return isset($langs[$code]) ? $langs[$code] : false;
} }

View File

@ -66,7 +66,7 @@ class Currency extends Decimal {
public static function setCurrencySymbol($value) { public static function setCurrencySymbol($value) {
Deprecation::notice('3.2', 'Use the "Currency.currency_symbol" config setting instead'); Deprecation::notice('3.2', 'Use the "Currency.currency_symbol" config setting instead');
$this->config()->currency_symbol = $value; Currency::config()->currency_symbol = $value;
} }
} }