diff --git a/advanced_forum.module b/advanced_forum.module index 67df4d0..008c2f6 100644 --- a/advanced_forum.module +++ b/advanced_forum.module @@ -164,8 +164,8 @@ function advanced_forum_theme() { ) ); - // These only exist if nodecomment is on. - if (module_exists('nodecomment')) { + // These only exist if both search and nodecomment are on. + if (module_exists('search') && module_exists('nodecomment')) { $items['advanced_forum_search_forum'] = array( 'arguments' => array('tid' => NULL), 'template' => 'advanced_forum-search-forum', diff --git a/includes/views/advanced_forum_search.view b/includes/views/advanced_forum_search.view index ce2e591..cf77b30 100644 --- a/includes/views/advanced_forum_search.view +++ b/includes/views/advanced_forum_search.view @@ -8,7 +8,7 @@ */ -if (module_exists('nodecomment')) { +if (module_exists('search') && module_exists('nodecomment')) { // BEGIN VIEW EXPORT ********************************************************/ @@ -344,4 +344,4 @@ $handler->override_option('tab_options', array( 'weight' => 0, )); // END VIEW EXPORT ********************************************************/ -} \ No newline at end of file +} diff --git a/includes/views/advanced_forum_search_topic.view b/includes/views/advanced_forum_search_topic.view index 5e8e97c..e0d37b7 100644 --- a/includes/views/advanced_forum_search_topic.view +++ b/includes/views/advanced_forum_search_topic.view @@ -1,7 +1,7 @@