diff --git a/lib/functions/output/function.standard_error.php b/lib/functions/output/function.standard_error.php index 5d3a8887..59b04ff7 100644 --- a/lib/functions/output/function.standard_error.php +++ b/lib/functions/output/function.standard_error.php @@ -38,6 +38,10 @@ function standard_error($errors = '', $replacer = '') $errors ); } + + if (isset($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST']) !== false) { + $link = ''.$lng['panel']['back'].''; + } $error = ''; foreach($errors as $single_error) diff --git a/templates/Classic/misc/error.tpl b/templates/Classic/misc/error.tpl index a252443c..44b51c6b 100644 --- a/templates/Classic/misc/error.tpl +++ b/templates/Classic/misc/error.tpl @@ -7,6 +7,10 @@ $header $error + + + $link +

diff --git a/templates/Froxlor/misc/error.tpl b/templates/Froxlor/misc/error.tpl index 038b2d2d..038be0af 100644 --- a/templates/Froxlor/misc/error.tpl +++ b/templates/Froxlor/misc/error.tpl @@ -3,6 +3,7 @@ $header
{$lng['error']['error']}
$error
+ $link
$footer