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:
parent
2050a97e13
commit
7536a1b619
4
mod.php
4
mod.php
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user