Commit 6026b672 authored by Joas Schilling's avatar Joas Schilling
Browse files

Fix the translations of the User menu

parent abcee56f
......@@ -89,20 +89,18 @@ class Factory implements IFactory {
if ($lang !== null) {
$lang = str_replace(array('\0', '/', '\\', '..'), '', (string) $lang);
}
$key = $lang;
if ($key === null || !$this->languageExists($app, $lang)) {
$key = 'null';
if ($lang === null || !$this->languageExists($app, $lang)) {
$lang = $this->findLanguage($app);
}
if (!isset($this->instances[$key][$app])) {
$this->instances[$key][$app] = new L10N(
if (!isset($this->instances[$lang][$app])) {
$this->instances[$lang][$app] = new L10N(
$this, $app, $lang,
$this->getL10nFilesForApp($app, $lang)
);
}
return $this->instances[$key][$app];
return $this->instances[$lang][$app];
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment