When enabling nodecomment for the first time, if views is already enabled it includes the views for comment module. Nodecomments and views both including these comment views causes a duplicate function error. This small patch checks that comment module does not exist before including the additional views.

Index: /Users/nate/Sites/sonymulti_myplay/trunk/public_html/sites/all/modules/contrib/nodecomment/nodecomment.module
===================================================================
--- nodecomment.module	(revision 71)
+++ nodecomment.module	(working copy)
@@ -10,7 +10,7 @@
  * a forum topic, weblog post, story, collaborative book page, etc.
  */
 
-if (module_exists('views')) {
+if (!module_exists('comment') && module_exists('views')) {
   include_once(drupal_get_path('module', 'nodecomment') . '/nodecomment_views.inc');
 }

Comments

robertdouglass’s picture

Status: Needs review » Fixed

Applied, thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)