1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-30 02:04:35 +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:
ctrlcctrlv 2013-08-28 21:31:10 +00:00
parent 3a8f106e85
commit 545f469f3c

View File

@ -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']);