Skip to content

Commit

Permalink
fix use of findLocale
Browse files Browse the repository at this point in the history
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
  • Loading branch information
georgehrke committed Jun 27, 2018
1 parent 9157086 commit b17d256
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/private/L10N/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function get($app, $lang = null, $locale = null) {
}

if ($locale === null || !$this->localeExists($locale)) {
$locale = $this->findLocale($app, $lang);
$locale = $this->findLocale($lang);
}

if (!isset($this->instances[$lang][$app])) {
Expand Down
2 changes: 1 addition & 1 deletion lib/private/TemplateLayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function __construct( $renderAs, $appId = '' ) {
$lang = \OC::$server->getL10NFactory()->findLanguage();
$lang = str_replace('_', '-', $lang);
$this->assign('language', $lang);
$this->assign('locale', \OC::$server->getL10NFactory()->findLocale());
$this->assign('locale', \OC::$server->getL10NFactory()->findLocale($lang));

if(\OC::$server->getSystemConfig()->getValue('installed', false)) {
if (empty(self::$versionHash)) {
Expand Down

0 comments on commit b17d256

Please sign in to comment.