1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-03 19:47:25 +01:00

Fix global report when failed CAPTCHA

This commit is contained in:
8chan 2015-04-25 18:06:57 -07:00
parent 79168cc4e1
commit 62e491a1e4

View File

@ -159,7 +159,7 @@ if (isset($_POST['delete'])) {
$captcha = null;
}
$body = Element('report.html', array('board' => $board, 'config' => $config, 'error' => $error, 'reason_prefill' => $_POST['reason'], 'post' => 'delete_'.$report[0], 'captcha' => $captcha));
$body = Element('report.html', array('board' => $board, 'config' => $config, 'error' => $error, 'reason_prefill' => $_POST['reason'], 'post' => 'delete_'.$report[0], 'captcha' => $captcha, 'global' => isset($_POST['global'])));
echo Element('page.html', ['config' => $config, 'body' => $body]);
die();
}