diff --git a/emhttp/plugins/dynamix.apcupsd/UPSdetails.page b/emhttp/plugins/dynamix.apcupsd/UPSdetails.page index 9eaa96693..a4e658f9b 100644 --- a/emhttp/plugins/dynamix.apcupsd/UPSdetails.page +++ b/emhttp/plugins/dynamix.apcupsd/UPSdetails.page @@ -14,10 +14,15 @@ Tag="battery-3" * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. */ +$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp'; +require_once "$docroot/webGui/include/Wrappers.php"; ?>