From e1044021638e0705478fd2b566a3e12c206af88e Mon Sep 17 00:00:00 2001 From: Matteo Gheza Date: Thu, 7 Apr 2022 23:21:45 +0200 Subject: [PATCH] Fix a stupid typo --- backend/utils.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/utils.php b/backend/utils.php index 465ed78..00a6308 100644 --- a/backend/utils.php +++ b/backend/utils.php @@ -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"); }