Skip to content
Snippets Groups Projects
Commit 71c6fd0e authored by Gábor Hojtsy's avatar Gábor Hojtsy
Browse files

#156392 by iacopopecchi, patch by myself: tracker module depends on comment...

#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
parent 11c3b797
No related branches found
No related tags found
No related merge requests found
; $Id$
name = Tracker
description = Enables tracking of recent posts for users.
dependencies[] = comment
package = Core - optional
version = VERSION
core = 6.x
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment