Browse Source

Fix "language key ... is defined more than once" warning

master
Skylar Ittner 7 months ago
parent
commit
ec44a6740f
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      lib/Strings.lib.php

+ 4
- 0
lib/Strings.lib.php View File

@@ -21,6 +21,10 @@ class Strings {
21 21
 
22 22
         $this->load("en");
23 23
 
24
+        if ($language == "en") {
25
+            return;
26
+        }
27
+
24 28
         if (file_exists(__DIR__ . "/../langs/$language/")) {
25 29
             $this->language = $language;
26 30
             $this->load($language);

Loading…
Cancel
Save