diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-10-30 00:28:02 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-10-30 00:28:02 +0000 |
commit | 8fe7b598da98d26564340b5ccbbc4441fa586339 (patch) | |
tree | 23dd6f0b51807ba2da6a459df0f5c78b02d71fa4 /usr/local/www/guiconfig.inc | |
parent | 0bfbf74b558f357e9a1ec8957f16b4682d38c2bd (diff) | |
download | pfsense-8fe7b598da98d26564340b5ccbbc4441fa586339.zip pfsense-8fe7b598da98d26564340b5ccbbc4441fa586339.tar.gz |
Display error reason correctly
Diffstat (limited to 'usr/local/www/guiconfig.inc')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc index 175e728..4ce39b3 100755 --- a/usr/local/www/guiconfig.inc +++ b/usr/local/www/guiconfig.inc @@ -237,21 +237,24 @@ function print_input_errors($input_errors) { <table border="0" cellspacing="0" cellpadding="4" width="100%"> <tr> <td class="inputerrorsleft"> - <img src="./themes/{$g['theme']}/images/icons/icon_error.gif" width="28" height="32"> + <img src="./themes/{$g['theme']}/images/icons/icon_error.gif"> </td> <td class="inputerrorsright"> <span class="errmsg"><p> The following input errors were detected: <ul> - <?php foreach ($input_errors as $ierr): ?> - <li><?=htmlspecialchars($ierr)?></li> - <?php endforeach; ?> +EOF; + foreach ($input_errors as $ierr) { + echo "<li>" . htmlspecialchars($ierr) . "</li>"; + } + + print <<<EOF2 </ul> </span> </td></tr> </table> </p> <br> -EOF; +EOF2; } |