mirror of
https://github.com/unraid/webgui.git
synced 2026-04-28 05:49:35 -05:00
Use "null coalescing assignment" operator for $docroot
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
<?PHP
|
||||
$docroot ??= ($_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp');
|
||||
$var = (array)parse_ini_file('state/var.ini');
|
||||
|
||||
require_once "$docroot/webGui/include/Wrappers.php";
|
||||
|
||||
Reference in New Issue
Block a user