Commit 7d1010c2 authored by jcnventura's avatar jcnventura

Fix #495898: handle node/nid/tab paths correctly

parent 06442272
......@@ -83,7 +83,7 @@ function print_controller($path, $cid = NULL, $format = PRINT_HTML_FORMAT, $teas
}
}
$parts = explode('/', $path);
if (is_numeric($parts[0])) {
if (is_numeric($parts[0]) && (count($parts) == 1)) {
$print = _print_generate_node($path, $cid, $format, $teaser, $message);
}
else {
......@@ -660,6 +660,12 @@ function _print_generate_node($nid, $cid = NULL, $format = PRINT_HTML_FORMAT, $t
function _print_generate_path($path, $format = PRINT_HTML_FORMAT, $teaser = FALSE, $message = NULL) {
global $_print_urls;
// Handle node tabs
$parts = explode('/', $path);
if (is_numeric($parts[0]) && (count($parts) > 1)) {
$path = 'node/' . $path;
}
$path = drupal_get_normal_path($path);
menu_set_active_item($path);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment