=== modified file 'includes/path.inc' --- includes/path.inc 2006-11-26 01:55:37 +0000 +++ includes/path.inc 2006-12-02 16:37:32 +0000 @@ -55,10 +55,12 @@ function drupal_lookup_path($action, $pa } elseif ($count > 0 && $path != '') { if ($action == 'alias') { - if (isset($map[$path]) || array_key_exists($path, $map)) { + if (isset($map[$path])) { return $map[$path]; } - $alias = db_result(db_query("SELECT dst FROM {url_alias} WHERE src = '%s'", $path)); + if (!$alias = db_result(db_query("SELECT dst FROM {url_alias} WHERE src = '%s'", $path))) { + $alias = FALSE; + } $map[$path] = $alias; return $alias; } === modified file 'modules/node/node.module' --- modules/node/node.module 2006-11-28 03:20:08 +0000 +++ modules/node/node.module 2006-12-03 19:23:55 +0000 @@ -2286,7 +2286,7 @@ function node_revisions() { if ($node->nid) { if ((user_access('view revisions') || user_access('administer nodes')) && node_access('view', $node)) { drupal_set_title(t('Revision of %title from %date', array('%title' => $node->title, '%date' => format_date($node->revision_timestamp)))); - return node_show($node, arg(2)); + return node_show($node); } drupal_access_denied(); return;