summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorNewEraCracker <neweracracker@gmail.com>2016-02-18 09:30:10 +0000
committerNewEraCracker <neweracracker@gmail.com>2016-02-18 09:30:10 +0000
commit607e7686fd59de9cfe677802333a8c062e8404bf (patch)
treeb9296663c6a1892175eb2cb9f0f854f7a1a1a0db /src/usr/local/www
parent00f298029285114925a733af2ab29222351b12fd (diff)
downloadpfsense-607e7686fd59de9cfe677802333a8c062e8404bf.zip
pfsense-607e7686fd59de9cfe677802333a8c062e8404bf.tar.gz
Minor tweaks to simplify code
Calling print(sprintf(...)) can be simplified to printf(...). <?php print can be simplified to <?=.
Diffstat (limited to 'src/usr/local/www')
-rwxr-xr-xsrc/usr/local/www/diag_halt.php2
-rw-r--r--src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/diag_halt.php b/src/usr/local/www/diag_halt.php
index 848d96b..10e30dc 100755
--- a/src/usr/local/www/diag_halt.php
+++ b/src/usr/local/www/diag_halt.php
@@ -85,7 +85,7 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
print_info_box(gettext("The system is halting now. This may take one minute or so."), 'success', false);
if (DEBUG) {
- print(sprintf(gettext("Not actually halting (DEBUG is set true)%s"), "<br />"));
+ printf(gettext("Not actually halting (DEBUG is set true)%s"), "<br />");
} else {
print('<pre>');
system_halt();
diff --git a/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php b/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php
index 00ae96a..4f5fec5 100644
--- a/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php
+++ b/src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php
@@ -177,7 +177,7 @@ if ($_REQUEST['getdyndnsstatus']) {
<?php endif; ?>
</td>
<td>
- <?php print(htmlspecialchars($hostname)); ?>
+ <?=htmlspecialchars($hostname);?>
</td>
<td>
<div id="dyndnsstatus<?= $dyndnsid;?>"><?= gettext("Checking ...");?></div>
OpenPOWER on IntegriCloud