Skip to content
Snippets Groups Projects
Commit e885a0a7 authored by MGN's avatar MGN
Browse files

* by MGN: use update_sql instead of db_query in hook_update_N.

parent 1c33582d
Branches
Tags 6.x-2.0-beta3
No related merge requests found
......@@ -197,7 +197,7 @@ function custom_breadcrumbs_taxonomy_update_6000() {
$views_weight = (int) db_result(db_query("SELECT weight FROM {system} WHERE name = 'views'"));
$cb_weight = (int) db_result(db_query("SELECT weight FROM {system} WHERE name = 'custom_breadcrumbs'"));
$cb_tax_weight = max($tax_weight, $views_weight, $cb_weight) + 2;
db_query("UPDATE {system} SET weight = %d WHERE name = 'custom_breadcrumbs_taxonomy'", $cb_tax_weight);
$ret[] = update_sql("UPDATE {system} SET weight = ". $cb_tax_weight ." WHERE name = 'custom_breadcrumbs_taxonomy'");
return $ret;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment