Closed (fixed)
Project:
Node Comments
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2007 at 20:01 UTC
Updated:
6 Aug 2007 at 06:52 UTC
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
Comment #1
robertdouglass commentedApplied, thanks.
Comment #2
(not verified) commented