From 71c6fd0ecf9f4e00e16ef69574e096183f54eb20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 4 Jul 2007 10:54:26 +0000 Subject: [PATCH] #156392 by iacopopecchi, patch by myself: tracker module depends on comment module (uses its tables and constants without checking for the module being present), so this dependency should be codified in the .info file --- modules/tracker/tracker.info | 1 + modules/tracker/tracker.module | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/tracker/tracker.info b/modules/tracker/tracker.info index 2375bc01a21..03816901a3b 100644 --- a/modules/tracker/tracker.info +++ b/modules/tracker/tracker.info @@ -1,6 +1,7 @@ ; $Id$ name = Tracker description = Enables tracking of recent posts for users. +dependencies[] = comment package = Core - optional version = VERSION core = 6.x diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module index c08bc5da2e9..bfad4bf3558 100644 --- a/modules/tracker/tracker.module +++ b/modules/tracker/tracker.module @@ -101,7 +101,7 @@ function tracker_page($uid = 0) { while ($node = db_fetch_object($result)) { // Determine the number of comments: $comments = 0; - if (module_exists('comment') && $node->comment_count) { + if ($node->comment_count) { $comments = $node->comment_count; if ($new = comment_num_new($node->nid)) {