Pass the thread ID when banning/deleting

This commit is contained in:
Michael Walker 2015-05-10 02:56:48 +01:00
parent 9ae357facb
commit 4184fdec6e
4 changed files with 17 additions and 7 deletions

View file

@ -23,6 +23,12 @@ if (get_magic_quotes_gpc()) {
$query = isset($_SERVER['QUERY_STRING']) ? rawurldecode($_SERVER['QUERY_STRING']) : '';
// If there's a thread parameter (eg, for returning to after enacting a ban)
// drop it from the $query.
if(isset($_GET['thread'])) {
$query = explode("&thread=", $query)[0];
}
$pages = array(
'' => ':?/', // redirect to dashboard
'/' => 'dashboard', // dashboard