diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-07-04 10:54:26 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-07-04 10:54:26 +0000 |
commit | 71c6fd0ecf9f4e00e16ef69574e096183f54eb20 (patch) | |
tree | 45b53abca0034997d7bdfe5eb49a2f5232a7e5fd | |
parent | 11c3b79776f3e5a6b0444b0cf99b30baf982bb0e (diff) | |
download | brdo-71c6fd0ecf9f4e00e16ef69574e096183f54eb20.tar.gz brdo-71c6fd0ecf9f4e00e16ef69574e096183f54eb20.tar.bz2 |
#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
-rw-r--r-- | modules/tracker/tracker.info | 1 | ||||
-rw-r--r-- | modules/tracker/tracker.module | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/modules/tracker/tracker.info b/modules/tracker/tracker.info index 2375bc01a..03816901a 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 c08bc5da2..bfad4bf35 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)) { |