forked from leftypol/leftypol
Pass the thread ID when banning/deleting
This commit is contained in:
parent
9ae357facb
commit
4184fdec6e
4 changed files with 17 additions and 7 deletions
6
mod.php
6
mod.php
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue