1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-25 16:00:22 +01:00

clear tracked cites when deleting board

This commit is contained in:
Savetheinternet 2011-12-06 14:39:46 +11:00
parent 1f219c3e95
commit 074210ea0b

View File

@ -1451,6 +1451,10 @@
cache::delete('all_boards');
}
$query = prepare("DELETE FROM `cites` WHERE `board` = :board OR `target_board` = :board");
$query->bindValue(':board', $board['uri']);
$query->execute() or error(db_error($query));
rebuildThemes('boards');
header('Location: ?/', true, $config['redirect_http']);