mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 18:48:49 -05:00
Use "null coalescing assignment" operator for $docroot
This commit is contained in:
@@ -11,12 +11,12 @@
|
||||
*/
|
||||
?>
|
||||
<?
|
||||
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
$docroot ??= ($_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp');
|
||||
require_once "$docroot/webGui/include/Helpers.php";
|
||||
|
||||
// add translations
|
||||
$_SERVER['REQUEST_URI'] = 'shares';
|
||||
require_once "$docroot/webGui/include/Translations.php";
|
||||
require_once "$docroot/webGui/include/Helpers.php";
|
||||
|
||||
$compute = rawurldecode(_var($_POST,'compute'));
|
||||
$path = rawurldecode(_var($_POST,'path'));
|
||||
|
||||
Reference in New Issue
Block a user