Skip to content

Commit 3b59951

Browse files
author
MortalSoft
committed
Wrong path for translation file different than EN
1 parent 54af3af commit 3b59951

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

core/classes/Config.class.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,10 @@ public function translation($language = "en") {
8080
if (file_exists($translations_file)) {
8181
$translations_data = file_get_contents($translations_file);
8282
$translations = json_decode($translations_data, true);
83-
84-
//$translation = array();
8583
} else {
86-
$translations_file = $_SERVER["DOCUMENT_ROOT"]."/translations/en.json";
84+
$translations_file = $_SERVER["DOCUMENT_ROOT"]."/core/translations/en.json";
8785
$translations_data = file_get_contents($translations_file);
8886
$translations = json_decode($translations_data, true);
89-
90-
//$translation = array();
9187
}
9288
return $translations;
9389
}

0 commit comments

Comments
 (0)