summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-04-07 17:03:10 +0000
committerColin Smith <colin@pfsense.org>2005-04-07 17:03:10 +0000
commitb35e23f2824c128b9eec58237c1098f8fcaba2de (patch)
tree6725af54a86562180a03591eb7172c1ac9f2c076 /etc
parent0b26b9eac5e3edb5886b3444ef3835dedb9f7028 (diff)
downloadpfsense-b35e23f2824c128b9eec58237c1098f8fcaba2de.zip
pfsense-b35e23f2824c128b9eec58237c1098f8fcaba2de.tar.gz
Add argument to return $resp->value() (standard PHP array) or $resp->serialize() (XML string).
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 7b53979..4ec1924 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1007,7 +1007,7 @@ function auto_upgrade() {
/*
* check_firmware_version(): Check whether the current firmware installed is the most recently released.
*/
-function check_firmware_version() {
+function check_firmware_version($return_php = true) {
global $g;
$versioncheck_base_url = $g['versioncheckbaseurl'];
$versioncheck_path = $g['versioncheckpath'];
@@ -1023,7 +1023,8 @@ function check_firmware_version() {
$resp = $cli->send($msg);
if(!$resp) return -1;
if($resp->faultCode()) return -1;
- return $resp->value();
+ if($return_php == false) return $resp->serialize();
+ return $resp->value();
}
?>
OpenPOWER on IntegriCloud