- Fixed tracker bug: tracker module has a line of faulty code which tries

to get the node name in the old way.  Patch by JonBob.
4.4.x
Dries Buytaert 2004-01-31 21:32:06 +00:00
parent 48a4dff897
commit fb1195258f
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ function tracker_posts($id = 0) {
$cresult = db_query("SELECT c.*, u.name FROM {comments} c INNER JOIN {users} u ON c.uid = u.uid WHERE c.nid = %d AND c.status = 0 ORDER BY c.cid DESC", $node->nid);
}
$type = ucfirst(module_invoke($node->type, "node", "name"));
$type = ucfirst(node_invoke($node->type, "node_name"));
$title = l($node->title, "node/view/$node->nid") ." ". (node_is_new($node->nid, $node->changed) ? theme("mark") : "");
$author = format_name($node);

View File

@ -60,7 +60,7 @@ function tracker_posts($id = 0) {
$cresult = db_query("SELECT c.*, u.name FROM {comments} c INNER JOIN {users} u ON c.uid = u.uid WHERE c.nid = %d AND c.status = 0 ORDER BY c.cid DESC", $node->nid);
}
$type = ucfirst(module_invoke($node->type, "node", "name"));
$type = ucfirst(node_invoke($node->type, "node_name"));
$title = l($node->title, "node/view/$node->nid") ." ". (node_is_new($node->nid, $node->changed) ? theme("mark") : "");
$author = format_name($node);