mirror of
https://github.com/unraid/webgui.git
synced 2026-05-01 23:39:21 -05:00
Minor code optimization
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user