Minor code optimization

This commit is contained in:
bergware
2021-03-19 19:18:24 +01:00
parent 3ec43b7522
commit aea53886da
+1 -2
View File
@@ -146,9 +146,8 @@ if ($locale) {
}
}
// split URI into translation levels
$uri = array_filter(explode('/',strtok($_SERVER['REQUEST_URI'],'?')));
$uri = array_filter(explode('/',strtolower(strtok($_SERVER['REQUEST_URI'],'?'))));
foreach($uri as $more) {
$more = strtolower($more);
$text = "$docroot/languages/$locale/$more.txt";
if (file_exists($text)) {
// additional translations