Added back button to standard_error page, refs #672

This commit is contained in:
Andreas Burchert (scarya)
2011-03-19 14:22:33 +01:00
parent ef8c3d3cf7
commit 38999a4f5e
3 changed files with 9 additions and 0 deletions

View File

@@ -39,6 +39,10 @@ function standard_error($errors = '', $replacer = '')
);
}
if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST']) !== false) {
$link = '<a href="'.$_SERVER['HTTP_REFERER'].'">'.$lng['panel']['back'].'</a>';
}
$error = '';
foreach($errors as $single_error)
{

View File

@@ -7,6 +7,10 @@ $header
<td class="field_name_center_noborder"><img src="images/Classic/error.gif" alt="" /></td>
<td class="field_name">$error</td>
</tr>
<tr>
<td></td>
<td>$link</td>
</tr>
</table>
<br />
<br />

View File

@@ -3,6 +3,7 @@ $header
<div class="errorcontainer bradius">
<div class="errortitle">{$lng['error']['error']}</div>
<div class="error">$error</div>
$link
</div>
</div>
$footer