|
|
@@ -61,12 +61,12 @@ class Translation {
|
|
|
$langFile = __DIR__ . '/../languages/' . $this->currentLanguage . '.php';
|
|
|
|
|
|
if (file_exists($langFile)) {
|
|
|
- $this->translations = include $langFile;
|
|
|
+ $this->translations = require $langFile;
|
|
|
} else {
|
|
|
// Fall back to default language if current language file doesn't exist
|
|
|
$defaultLangFile = __DIR__ . '/../languages/' . $this->defaultLanguage . '.php';
|
|
|
if (file_exists($defaultLangFile)) {
|
|
|
- $this->translations = include $defaultLangFile;
|
|
|
+ $this->translations = require $defaultLangFile;
|
|
|
}
|
|
|
}
|
|
|
}
|