Bugfix: Circlepuller is a dumbass and broke many mod actions, don't merge his commits without testing them
This commit is contained in:
parent
8503e65858
commit
e34c0f4b65
@ -1350,7 +1350,7 @@ function mod_ban_post($board, $delete, $post, $token = false) {
|
||||
// Rebuild board
|
||||
buildIndex();
|
||||
// Rebuild themes
|
||||
rebuildThemes('post-delete', $board['uri']);
|
||||
rebuildThemes('post-delete', $board);
|
||||
}
|
||||
|
||||
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']);
|
||||
@ -1446,7 +1446,7 @@ function mod_delete($board, $post) {
|
||||
// Rebuild board
|
||||
buildIndex();
|
||||
// Rebuild themes
|
||||
rebuildThemes('post-delete', $board['uri']);
|
||||
rebuildThemes('post-delete', $board);
|
||||
// Redirect
|
||||
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']);
|
||||
}
|
||||
@ -1468,7 +1468,7 @@ function mod_deletefile($board, $post) {
|
||||
// Rebuild board
|
||||
buildIndex();
|
||||
// Rebuild themes
|
||||
rebuildThemes('post-delete', $board['uri']);
|
||||
rebuildThemes('post-delete', $board);
|
||||
|
||||
// Redirect
|
||||
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']);
|
||||
@ -1509,7 +1509,7 @@ function mod_spoiler_image($board, $post) {
|
||||
buildIndex();
|
||||
|
||||
// Rebuild themes
|
||||
rebuildThemes('post-delete', $board['uri']);
|
||||
rebuildThemes('post-delete', $board);
|
||||
|
||||
// Redirect
|
||||
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']);
|
||||
|
Loading…
Reference in New Issue
Block a user