#156392 by G?bor Hojtsy. Add comment module depenedency to tracker.
parent
41c363832f
commit
397c09da28
|
@ -1,5 +1,6 @@
|
||||||
; $Id$
|
; $Id$
|
||||||
name = Tracker
|
name = Tracker
|
||||||
description = Enables tracking of recent posts for users.
|
description = Enables tracking of recent posts for users.
|
||||||
|
dependencies = comment
|
||||||
package = Core - optional
|
package = Core - optional
|
||||||
version = VERSION
|
version = VERSION
|
||||||
|
|
|
@ -96,7 +96,7 @@ function tracker_page($uid = 0) {
|
||||||
while ($node = db_fetch_object($result)) {
|
while ($node = db_fetch_object($result)) {
|
||||||
// Determine the number of comments:
|
// Determine the number of comments:
|
||||||
$comments = 0;
|
$comments = 0;
|
||||||
if (module_exists('comment') && $node->comment_count) {
|
if ($node->comment_count) {
|
||||||
$comments = $node->comment_count;
|
$comments = $node->comment_count;
|
||||||
|
|
||||||
if ($new = comment_num_new($node->nid)) {
|
if ($new = comment_num_new($node->nid)) {
|
||||||
|
|
Loading…
Reference in New Issue