diff options
author | NewEraCracker <neweracracker@gmail.com> | 2016-02-18 09:30:10 +0000 |
---|---|---|
committer | NewEraCracker <neweracracker@gmail.com> | 2016-02-18 09:30:10 +0000 |
commit | 607e7686fd59de9cfe677802333a8c062e8404bf (patch) | |
tree | b9296663c6a1892175eb2cb9f0f854f7a1a1a0db | |
parent | 00f298029285114925a733af2ab29222351b12fd (diff) | |
download | pfsense-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 <?=.
-rwxr-xr-x | src/usr/local/www/diag_halt.php | 2 | ||||
-rw-r--r-- | src/usr/local/www/widgets/widgets/dyn_dns_status.widget.php | 2 |
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> |