Procházet zdrojové kódy

Fixes to translation

svalavuo před 6 dny
rodič
revize
ce216ea9a1
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      includes/translation.php

+ 2 - 2
includes/translation.php

@@ -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;
             }
         }
     }