1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-24 07:30:10 +01:00

clear tracked cites when deleting board

This commit is contained in:
Savetheinternet 2011-12-06 14:39:46 +11:00
parent 2050a97e13
commit 7536a1b619

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