Browse Source

When deleting a post, return to the thread, not the board index (unless deleting the OP)

pull/40/head
Michael Walker 9 years ago
parent
commit
649255c9b9
  1. 4
      inc/mod/pages.php

4
inc/mod/pages.php

@ -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;

Loading…
Cancel
Save