fix use of findLocale

Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
Georg Ehrke 2018-06-27 21:12:08 +02:00
parent 9157086c23
commit b17d256761
No known key found for this signature in database
GPG Key ID: 9D98FD9380A1CB43
2 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ class Factory implements IFactory {
}
if ($locale === null || !$this->localeExists($locale)) {
$locale = $this->findLocale($app, $lang);
$locale = $this->findLocale($lang);
}
if (!isset($this->instances[$lang][$app])) {

View File

@ -135,7 +135,7 @@ class TemplateLayout extends \OC_Template {
$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)) {