#356749 by chx: Fix cruft in forum_install().

merge-requests/26/head
Angie Byron 2009-01-10 05:32:30 +00:00
parent 46cf0a7db4
commit 117b284fd4
1 changed files with 1 additions and 2 deletions

View File

@ -15,8 +15,7 @@ function forum_enable() {
if ($vocabulary = taxonomy_vocabulary_load(variable_get('forum_nav_vocabulary', 0))) {
// Existing install. Add back forum node type, if the forums
// vocabulary still exists. Keep all other node types intact there.
$vocabulary = (array) $vocabulary;
$vocabulary['nodes']['forum'] = 1;
$vocabulary->nodes['forum'] = 1;
taxonomy_vocabulary_save($vocabulary);
}
else {