diff options
author | Carlos Eduardo Ramos <carlos.ramos@bluepex.com> | 2010-07-29 13:36:33 -0300 |
---|---|---|
committer | Carlos Eduardo Ramos <carlos.ramos@bluepex.com> | 2010-07-29 13:36:33 -0300 |
commit | f736260e31042226a348d23848d7c1f93c01e4f9 (patch) | |
tree | acec7b9ae9a95970a22a5164c904d4c3d3f925c7 /usr/local/www/reboot.php | |
parent | a0d37fd5c407ac88049251b5f166726f900fcc8d (diff) | |
download | pfsense-f736260e31042226a348d23848d7c1f93c01e4f9.zip pfsense-f736260e31042226a348d23848d7c1f93c01e4f9.tar.gz |
Fix gettext implementation on reboot.php
Diffstat (limited to 'usr/local/www/reboot.php')
-rwxr-xr-x | usr/local/www/reboot.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/local/www/reboot.php b/usr/local/www/reboot.php index 284386e..07faa19 100755 --- a/usr/local/www/reboot.php +++ b/usr/local/www/reboot.php @@ -58,8 +58,8 @@ include("head.inc"); <form action="reboot.php" method="post"> <p><strong><?=gettext("Are you sure you want to reboot the system?");?></strong></p> <p> - <input name="Submit" type="submit" class="formbtn" value="<?=gettext(" Yes ");?>"> - <input name="Submit" type="submit" class="formbtn" value="<?=gettext(" No ");?>"> + <input name="Submit" type="submit" class="formbtn" value=" <?=gettext("Yes");?> "> + <input name="Submit" type="submit" class="formbtn" value=" <?=gettext("No");?> "> </p> </form> <?php endif; ?> @@ -69,7 +69,8 @@ include("head.inc"); <?php if ($_POST) { - if ($_POST['Submit'] == gettext(" Yes ")) { + $reply = " " . gettext("Yes") . " "; + if ($_POST['Submit'] == $reply) { echo "<meta http-equiv=\"refresh\" content=\"70;url=/\">"; system_reboot(); $rebootmsg = gettext("The system is rebooting now. This may take one minute."); |