remove unnecessary string-break; use standardlanguage-variable as fallback language for installer

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2018-09-25 08:12:21 +02:00
parent f766c6f920
commit bd036a0fde
3 changed files with 6 additions and 6 deletions

View File

@@ -1123,7 +1123,7 @@ class FroxlorInstall
}
// require english base language as fallback
$lngfile = $this->_basepath . '/install/lng/english.lng.php';
$lngfile = $this->_basepath . '/install/lng/' . $standardlanguage . '.lng.php';
if (file_exists($lngfile)) {
// includes file /lng/$language.lng.php if it exists
require $lngfile;
@@ -1131,7 +1131,7 @@ class FroxlorInstall
}
// require chosen language if not english
if ($this->_activelng != 'english')
if ($this->_activelng != $standardlanguage)
{
$lngfile = $this->_basepath . '/install/lng/' . $this->_activelng . '.lng.php';
if (file_exists($lngfile)) {