summaryrefslogtreecommitdiffstats
path: root/src/usr/local
diff options
context:
space:
mode:
authorSteve Beaver <sbeaver@netgate.com>2017-07-28 15:47:56 -0400
committerSteve Beaver <sbeaver@netgate.com>2017-07-28 15:47:56 -0400
commitf8ac432445d079318cb3bd41f87096cf2ea91075 (patch)
treec42e62bf6c9e4e988ef671065d26223647a09096 /src/usr/local
parent2f16265803cb925f0005f6fa3256cdb02751131c (diff)
downloadpfsense-f8ac432445d079318cb3bd41f87096cf2ea91075.zip
pfsense-f8ac432445d079318cb3bd41f87096cf2ea91075.tar.gz
Comment fixes
Diffstat (limited to 'src/usr/local')
-rw-r--r--src/usr/local/www/widgets/widgets/netgate_services_and_support.widget.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/usr/local/www/widgets/widgets/netgate_services_and_support.widget.php b/src/usr/local/www/widgets/widgets/netgate_services_and_support.widget.php
index cc2237c..24395b5 100644
--- a/src/usr/local/www/widgets/widgets/netgate_services_and_support.widget.php
+++ b/src/usr/local/www/widgets/widgets/netgate_services_and_support.widget.php
@@ -35,15 +35,15 @@ $refreshinterval = (24 * 3600); // 24 hours
function nosupportdata() {
global $supportfile;
- file_put_contents($supportfile, sprintf(gettext("%sSupport information unavailable%s"),
+ file_put_contents($supportfile, sprintf(gettext("%sSupport information could not be retrieved%s"),
"{\"summary\":\"<div class=\\\"alert alert-danger\\\">", "</div>\",\"htmltext\":\"\"}"));
- // Make the file a day old so that the widget tries again on the next page load
+ // Make the file {refreshinterval} old so that the widget tries again on the next page load
touch($supportfile, (time() - $refreshinterval));
}
// Poll the Netgate server to obtain the JSON/HTML formatted support information
-// and write it to the file /var/db/support.json
+// and write it to the JSON file
function updateSupport() {
global $g, $supportfile, $idfile, $FQDN;
@@ -78,8 +78,8 @@ function updateSupport() {
}
}
-// If the widget is called with act=refresh, delete the support.json file and reload hte page, thereby forcing the
-// widget to get a fresh copy of hte support information
+// If the widget is called with act=refresh, delete the JSON file and reload the page, thereby forcing the
+// widget to get a fresh copy of the support information
if ($_REQUEST['act'] == "refresh") {
unlink($supportfile);
header("Location: /");
OpenPOWER on IntegriCloud