diff --git bpv.module bpv.module index dac667c..c9d7e6b 100755 --- bpv.module +++ bpv.module @@ -50,7 +50,7 @@ function bpv_form_alter(&$form, $form_state, $form_id) { } function bpv_update_all_blocks() { - $sql = 'UPDATE blocks SET visibility = 2, pages = CONCAT("<", "?", "php ", "return bpv_is_visible(\'", module, "-", delta, "\'); ", "?", ">") WHERE status=1 AND theme=\'%s\''; + $sql = 'UPDATE {blocks} SET visibility = 2, pages = CONCAT("<", "?", "php ", "return bpv_is_visible(\'", module, "-", delta, "\'); ", "?", ">") WHERE status=1 AND theme=\'%s\''; // TODO: This should affect whatever theme is currently being edited, not the default theme db_query($sql, variable_get('theme_default', 'garland')); } @@ -104,7 +104,7 @@ function bpv_is_visible($name) { } function bpv_disable() { - $sql = "UPDATE blocks SET pages = '' WHERE status=1 AND theme='%s'"; + $sql = "UPDATE {blocks} SET pages = '' WHERE status=1 AND theme='%s'"; db_query($sql, variable_get('theme_default', 'garland')); variable_del('bpv_default'); } \ No newline at end of file