Merge pull request #473 from allerta-vvf/master

Fix a stupid typo
This commit is contained in:
Matteo Gheza 2022-04-07 23:24:22 +02:00 committed by GitHub
commit 6921c4254d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -653,7 +653,6 @@ class Translations
public $language = null;
public $client_languages = ["en"];
public $loaded_translations = [];
public $filename = "";
public function client_languages()
{
@ -701,9 +700,9 @@ class Translations
}
}
foreach($this->loaded_languages as $language) {
$this->filename = "translations/".$this->language.".php";
$filename = "translations/".$language.".php";
if (file_exists($this->filename)) {
$this->loaded_translations[$language] = require($this->filename);
$this->loaded_translations[$language] = require($filename);
} else {
throw new Exception("Language file not found");
}