From f94692c4f4e19e6b892a4b5a8a4bde18af5487d1 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 29 Dec 2014 11:33:37 +0000 Subject: [PATCH] fix moved Core/Shell module --- src/www/system_firmware_check.php | 4 ++-- src/www/widgets/widgets/system_information.widget.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/www/system_firmware_check.php b/src/www/system_firmware_check.php index 5f96f56a3..07577b53c 100644 --- a/src/www/system_firmware_check.php +++ b/src/www/system_firmware_check.php @@ -42,7 +42,7 @@ $pkg_status = array(); if($_POST['action'] == 'pkg_update') { /* Setup Shell variables */ $shell_output = array(); - $shell = new Core\Shell(); + $shell = new OPNsense\Core\Shell(); // execute shell command and collect (only valid) info into named array $shell->exec("/usr/local/opnsense/scripts/pkg_updatecheck.sh",false,false,$shell_output); } @@ -50,7 +50,7 @@ if($_POST['action'] == 'pkg_update') { if($_POST['action'] == 'pkg_upgrade') { /* Setup Shell variables */ $shell_output = array(); - $shell = new Core\Shell(); + $shell = new OPsense\Core\Shell(); // execute shell command and collect (only valid) info into named array $shell->exec("/usr/local/opnsense/scripts/pkg_upgrade.sh&",false,false,$shell_output); } diff --git a/src/www/widgets/widgets/system_information.widget.php b/src/www/widgets/widgets/system_information.widget.php index b879b4381..79d8caebb 100644 --- a/src/www/widgets/widgets/system_information.widget.php +++ b/src/www/widgets/widgets/system_information.widget.php @@ -39,7 +39,7 @@ $file_pkg_status="/tmp/pkg_status.json"; if($_POST['action'] == 'pkg_update') { /* Setup Shell variables */ $shell_output = array(); - $shell = new Core\Shell(); + $shell = new OPNsense\Core\Shell(); // execute shell command and collect (only valid) info into named array $shell->exec("/usr/local/opnsense/scripts/pkg_updatecheck.sh",false,false,$shell_output); }