mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fixed static config access in Currency and i18n (fixes #8341)
This commit is contained in:
parent
a1c5951d83
commit
880702fc74
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user