mirror of
https://github.com/unraid/webgui.git
synced 2026-01-12 20:49:56 -06:00
PHP8 support
This commit is contained in:
@@ -17,7 +17,7 @@ libxml_use_internal_errors(true); # Suppress any warnings from xml errors.
|
||||
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
|
||||
// add translations
|
||||
if ($_SERVER['REQUEST_URI'] != 'docker' && substr($_SERVER['REQUEST_URI']??'',0,7) != '/Docker') {
|
||||
if (isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI']!='docker' && substr($_SERVER['REQUEST_URI']??'',0,7) != '/Docker') {
|
||||
$_SERVER['REQUEST_URI'] = 'docker';
|
||||
require_once "$docroot/webGui/include/Translations.php";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user