Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set visibility of trySetLanguage() to public to allow changing of lan…

…guage within a request
  • Loading branch information...
commit 0b60b7f1b4ca39dfc4fe665147b165b48f2ea85f 1 parent 991cec2
@perjonsson perjonsson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  core/core/classes/localization_engine.php
View
2  core/core/classes/localization_engine.php
@@ -556,7 +556,7 @@ public static function __set_state($saved_state) {
return new LocalizationEngine($saved_state['locale_data']);
}
- private function trySetLanguage($locale) {
+ public function trySetLanguage($locale) {
$locale = \strtolower(\substr($locale, 0, 2));
if (\strlen($locale) != 2)
return false;
Please sign in to comment.
Something went wrong with that request. Please try again.