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:
parent
1f219c3e95
commit
074210ea0b
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