fix use of findLocale
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
This commit is contained in:
parent
9157086c23
commit
b17d256761
|
@ -126,7 +126,7 @@ class Factory implements IFactory {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($locale === null || !$this->localeExists($locale)) {
|
if ($locale === null || !$this->localeExists($locale)) {
|
||||||
$locale = $this->findLocale($app, $lang);
|
$locale = $this->findLocale($lang);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset($this->instances[$lang][$app])) {
|
if (!isset($this->instances[$lang][$app])) {
|
||||||
|
|
|
@ -135,7 +135,7 @@ class TemplateLayout extends \OC_Template {
|
||||||
$lang = \OC::$server->getL10NFactory()->findLanguage();
|
$lang = \OC::$server->getL10NFactory()->findLanguage();
|
||||||
$lang = str_replace('_', '-', $lang);
|
$lang = str_replace('_', '-', $lang);
|
||||||
$this->assign('language', $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(\OC::$server->getSystemConfig()->getValue('installed', false)) {
|
||||||
if (empty(self::$versionHash)) {
|
if (empty(self::$versionHash)) {
|
||||||
|
|
Loading…
Reference in New Issue