#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

6.x
Gábor Hojtsy 2007-07-04 10:54:26 +00:00
parent 11c3b79776
commit 71c6fd0ecf
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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)) {