Instantiate system class w/ namespace

This commit is contained in:
billz 2021-08-03 15:18:36 +01:00
parent 372da249af
commit 4e62413e11
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
require_once 'app/lib/system.php';
$system = new System();
$system = new \RaspAP\System\Sysinfo;
$hostname = $system->hostname();
$uptime = $system->uptime();

View file

@ -153,7 +153,7 @@ function DisplaySystem()
);
#fetch system status variables.
$system = new System();
$system = new \RaspAP\System\Sysinfo;
$hostname = $system->hostname();
$uptime = $system->uptime();