PHP8 support

This commit is contained in:
bergware
2023-01-19 09:31:42 +01:00
parent 7da69ea2b4
commit a2d6847e1a

View File

@@ -1,6 +1,6 @@
<?PHP
/* Copyright 2005-2022, Lime Technology
* Copyright 2012-2022, Bergware International.
/* Copyright 2005-2023, Lime Technology
* Copyright 2012-2023, Bergware International.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2,
@@ -154,7 +154,7 @@ if ($locale) {
}
}
// split URI into translation levels
$uri = array_filter(explode('/',strtolower(strtok($_SERVER['REQUEST_URI'],'?'))));
$uri = array_filter(explode('/',strtolower(strtok($_SERVER['REQUEST_URI']??'','?'))));
foreach($uri as $more) {
$text = "$docroot/languages/$locale/$more.txt";
if (file_exists($text)) {