From 4184fdec6ec3db4d80a0d429f1a3c0dae1ae2675 Mon Sep 17 00:00:00 2001 From: Michael Walker Date: Sun, 10 May 2015 02:56:48 +0100 Subject: Pass the thread ID when banning/deleting --- inc/mod/pages.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'inc') diff --git a/inc/mod/pages.php b/inc/mod/pages.php index c21086ed..c8d3e2ad 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -61,7 +61,11 @@ function mod_login($redirect = false) { } function mod_confirm($request) { - mod_page(_('Confirm action'), 'mod/confirm.html', array('request' => $request, 'token' => make_secure_link_token($request))); + $args = array('request' => $request, 'token' => make_secure_link_token($request)); + if(isset($_GET['thread'])) { + $args['rest'] = 'thread=' . $_GET['thread']; + } + mod_page(_('Confirm action'), 'mod/confirm.html', $args); } function mod_logout() { -- cgit v1.3