mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Using i18n::get_locale() in ContentController->ContentLocale() to ensure the correct locale can be used in templates withouth Translatable enabled (broken in r97207, thanks DesignCity) (from r102544)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@102545 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
551d8d9af3
commit
3588f6cf16
@ -405,7 +405,7 @@ HTML;
|
||||
} elseif(Object::has_extension('SiteTree', 'Translatable')) {
|
||||
$locale = Translatable::get_current_locale();
|
||||
} else {
|
||||
$locale = i18n::default_locale();
|
||||
$locale = i18n::get_locale();
|
||||
}
|
||||
|
||||
return i18n::convert_rfc1766($locale);
|
||||
|
Loading…
x
Reference in New Issue
Block a user