From 4e187261abc63432130bd3b5661b622ba095ffeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Thu, 25 Oct 2007 08:24:43 +0000 Subject: #177497 by chx and Desbeers: revive Drupal 5's menu_set_location() functionality by introducing menu_set_item() (for consistency in function naming), thus fixing a regression in the current development code. Also fixing some misuse of menu_set_location() by using drupal_set_breadcrumb() instead. --- modules/comment/comment.module | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/comment/comment.module') diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 86b874130..877be28ae 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -681,8 +681,7 @@ function comment_edit($cid) { */ function comment_reply($node, $pid = NULL) { // Set the breadcrumb trail. - menu_set_location(array(array('path' => "node/$node->nid", 'title' => $node->title), array('path' => "comment/reply/$node->nid"))); - + drupal_set_breadcrumb(array(l(t('Home'), NULL), l($node->title, 'node/'. $node->nid))); $op = isset($_POST['op']) ? $_POST['op'] : ''; $output = ''; -- cgit v1.2.3