From 4e62413e116cb23e005d322507b04c1905666502 Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 3 Aug 2021 15:18:36 +0100 Subject: [PATCH] Instantiate system class w/ namespace --- includes/sysstats.php | 2 +- includes/system.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/sysstats.php b/includes/sysstats.php index 591672ba..5122c91c 100755 --- a/includes/sysstats.php +++ b/includes/sysstats.php @@ -2,7 +2,7 @@ require_once 'app/lib/system.php'; -$system = new System(); +$system = new \RaspAP\System\Sysinfo; $hostname = $system->hostname(); $uptime = $system->uptime(); diff --git a/includes/system.php b/includes/system.php index 046cadac..7cd53b24 100755 --- a/includes/system.php +++ b/includes/system.php @@ -153,7 +153,7 @@ function DisplaySystem() ); #fetch system status variables. - $system = new System(); + $system = new \RaspAP\System\Sysinfo; $hostname = $system->hostname(); $uptime = $system->uptime();