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

@@ -38,6 +38,10 @@ function standard_error($errors = '', $replacer = '')
$errors
);
}
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)