- Rollback. :-)

6.x
Dries Buytaert 2007-03-25 21:11:26 +00:00
parent 632c09e419
commit 8f46152ad6
1 changed files with 1 additions and 2 deletions

View File

@ -146,8 +146,6 @@ function _block_rehash() {
init_theme();
db_lock_table('blocks');
$result = db_query("SELECT * FROM {blocks} WHERE theme = '%s'", $theme_key);
while ($old_block = db_fetch_object($result)) {
$old_blocks[$old_block->module][$old_block->delta] = $old_block;
@ -187,6 +185,7 @@ function _block_rehash() {
}
}
db_lock_table('blocks');
// Remove all blocks from table.
db_query("DELETE FROM {blocks} WHERE theme = '%s'", $theme_key);