mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-26 08:20:58 +01:00
Bugfix: Circlepuller is a dumbass and broke many mod actions, don't merge his commits without testing them
This commit is contained in:
parent
3a8f106e85
commit
545f469f3c
@ -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