Conflicts:
	stylesheets/dark_roach.css
	stylesheets/style.css
This commit is contained in:
czaks 2013-08-20 18:22:37 -04:00
commit de035f4a7e
10 changed files with 77 additions and 17 deletions

View file

@ -359,10 +359,12 @@ function mod_edit_board($boardName) {
$query->bindValue(':uri', $board['uri']);
$query->execute() or error(db_error($query));
modLog('Deleted board: ' . sprintf($config['board_abbreviation'], $board['uri']), false);
if ($config['cache']['enabled']) {
cache::delete('board_' . $board['uri']);
cache::delete('all_boards');
}
// Delete entire board directory
rrmdir($board['uri'] . '/');
modLog('Deleted board: ' . sprintf($config['board_abbreviation'], $board['uri']), false);
// Delete posting table
$query = query(sprintf('DROP TABLE IF EXISTS ``posts_%s``', $board['uri'])) or error(db_error());
@ -409,6 +411,9 @@ function mod_edit_board($boardName) {
$_query->execute() or error(db_error($_query));
}
}
// Delete entire board directory
rrmdir($board['uri'] . '/');
} else {
$query = prepare('UPDATE ``boards`` SET `title` = :title, `subtitle` = :subtitle WHERE `uri` = :uri');
$query->bindValue(':uri', $board['uri']);