Skip to content
Snippets Groups Projects
Commit fb119525 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- 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.
parent 48a4dff8
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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);
......
......@@ -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);
......
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