mirror of
https://github.com/unraid/webgui.git
synced 2026-01-16 06:30:19 -06:00
Suppress PHP warnings
This commit is contained in:
@@ -17,6 +17,8 @@ require_once "$docroot/plugins/dynamix.docker.manager/include/DockerClient.php";
|
||||
require_once "$docroot/plugins/dynamix.docker.manager/include/Helpers.php";
|
||||
require_once "$docroot/webGui/include/Helpers.php";
|
||||
|
||||
libxml_use_internal_errors(false); # Enable xml errors
|
||||
|
||||
$var = parse_ini_file('state/var.ini');
|
||||
$cfg = parse_ini_file('boot/config/docker.cfg');
|
||||
ignore_user_abort(true);
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
?>
|
||||
<?
|
||||
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
libxml_use_internal_errors(true); # Suppress any warnings from xml errors.
|
||||
|
||||
require_once "$docroot/plugins/dynamix.docker.manager/include/Helpers.php";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user