Fixed link in "Go back" on error pages for mods
This commit is contained in:
parent
98c62258b4
commit
083d7213f6
@ -20,7 +20,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function error($message) {
|
function error($message) {
|
||||||
global $board;
|
global $board, $mod;
|
||||||
|
|
||||||
if(function_exists('sql_close')) sql_close();
|
if(function_exists('sql_close')) sql_close();
|
||||||
die(Element('page.html', Array(
|
die(Element('page.html', Array(
|
||||||
@ -29,7 +29,10 @@
|
|||||||
'subtitle'=>'An error has occured.',
|
'subtitle'=>'An error has occured.',
|
||||||
'body'=>"<center>" .
|
'body'=>"<center>" .
|
||||||
"<h2>$message</h2>" .
|
"<h2>$message</h2>" .
|
||||||
(isset($board) ? "<p><a href=\"" . ROOT . $board['dir'] . FILE_INDEX . "\">Go back</a>.</p>" : '').
|
(isset($board) ?
|
||||||
|
"<p><a href=\"" . ROOT .
|
||||||
|
($mod ? FILE_MOD . '?/' : '') .
|
||||||
|
$board['dir'] . FILE_INDEX . "\">Go back</a>.</p>" : '').
|
||||||
"</center>"
|
"</center>"
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user