1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-31 04:13:49 +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 8503e65858
commit e34c0f4b65

View File

@ -1350,7 +1350,7 @@ function mod_ban_post($board, $delete, $post, $token = false) {
// Rebuild board // Rebuild board
buildIndex(); buildIndex();
// Rebuild themes // 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']); 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 // Rebuild board
buildIndex(); buildIndex();
// Rebuild themes // Rebuild themes
rebuildThemes('post-delete', $board['uri']); rebuildThemes('post-delete', $board);
// Redirect // Redirect
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']); 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 // Rebuild board
buildIndex(); buildIndex();
// Rebuild themes // Rebuild themes
rebuildThemes('post-delete', $board['uri']); rebuildThemes('post-delete', $board);
// Redirect // Redirect
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']); 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(); buildIndex();
// Rebuild themes // Rebuild themes
rebuildThemes('post-delete', $board['uri']); rebuildThemes('post-delete', $board);
// Redirect // Redirect
header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']); header('Location: ?/' . sprintf($config['board_path'], $board) . $config['file_index'], true, $config['redirect_http']);