Skip to content

Commit

Permalink
Replace lib detectbrowserlanguage in REST file (should have been done…
Browse files Browse the repository at this point in the history
… for #943)
  • Loading branch information
coudot committed Oct 29, 2024
1 parent c89946a commit 972086f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rest/v1/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#==============================================================================
# Language
#==============================================================================
require_once("../../lib/detectbrowserlanguage.php");
# Available languages
$languages = array();
if ($handle = opendir('../../lang')) {
Expand All @@ -32,7 +31,7 @@
}
closedir($handle);
}
$lang = detectLanguage($lang, $languages);
$lang = \Ltb\Language::detectLanguage($lang, $languages);
require_once("../../lang/$lang.inc.php");
if (file_exists("../../conf/$lang.inc.php")) {
require_once("../../conf/$lang.inc.php");
Expand Down

0 comments on commit 972086f

Please sign in to comment.