Commit 77c36162 authored by webchick's avatar webchick
Browse files

#788370 by catch: Fixed taxonomy_update_7002() fails when taxonomy module is disabled.

parent ed861728
......@@ -260,7 +260,10 @@ function taxonomy_update_7002() {
db_add_field('taxonomy_vocabulary', 'machine_name', $field);
foreach (taxonomy_get_vocabularies() as $vid => $vocabulary) {
// Do a direct query here, rather than calling taxonomy_get_vocabularies(),
// in case Taxonomy module is disabled.
$vids = db_query('SELECT vid FROM {taxonomy_vocabulary}')->fetchCol();
foreach ($vids as $vid) {
$machine_name = 'vocabulary_' . $vid;
->fields(array('machine_name' => $machine_name))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment