|
|
@ -1529,8 +1529,12 @@ function mod_delete($board, $post) { |
|
|
|
// Rebuild themes |
|
|
|
rebuildThemes('post-delete', $board); |
|
|
|
// Redirect |
|
|
|
if(isset($_GET['thread'])) { |
|
|
|
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['dir']['res'] . str_replace('%d', $_GET['thread'], $config['file_page']), true, $config['redirect_http']); |
|
|
|
} else { |
|
|
|
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
function mod_deletefile($board, $post, $file) { |
|
|
|
global $config, $mod; |
|
|
|