Index: modules/node/node.module =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.module,v retrieving revision 1.882 diff -u -p -r1.882 node.module --- modules/node/node.module 14 Sep 2007 09:37:29 -0000 1.882 +++ modules/node/node.module 18 Sep 2007 22:17:44 -0000 @@ -1012,7 +1012,7 @@ function node_build_content($node, $teas /** * Generate a page displaying a single node, along with its comments. */ -function node_show($node, $cid) { +function node_show($node, $cid = NULL) { $output = node_view($node, FALSE, TRUE); if (function_exists('comment_render') && $node->comment) { @@ -1394,7 +1394,9 @@ function node_menu() { } $items['node/%node'] = array( 'title' => 'View', - 'page callback' => 'node_page_view', + 'title callback' => 'node_page_title', + 'title arguments'=> array(1), + 'page callback' => 'node_show', 'page arguments' => array(1), 'access callback' => 'node_access', 'access arguments' => array('view', 1), @@ -1604,11 +1606,10 @@ function node_page_default() { } /** - * Menu callback; view a single node. + * Title callback; view a single node. */ -function node_page_view($node, $cid = NULL) { - drupal_set_title(check_plain($node->title)); - return node_show($node, $cid); +function node_page_title($node) { + return check_plain($node->title); } /**