Skip to content

Commit

Permalink
Set visibility of trySetLanguage() to public to allow changing of lan…
Browse files Browse the repository at this point in the history
…guage within a request
  • Loading branch information
perjonsson committed May 1, 2012
1 parent 991cec2 commit 0b60b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/core/classes/localization_engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0b60b7f

Please sign in to comment.