mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Display error reason correctly
This commit is contained in:
parent
0bfbf74b55
commit
8fe7b598da
@ -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;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user