Commit f97c3367 authored by Dries's avatar Dries

- Patch #9649 by JonBob: fixed a buglet in the recent book patch. It tried

  to set book breadcrumbs for nodes that weren't books.
parent ca3e769f
......@@ -456,9 +456,9 @@ function book_nodeapi(&$node, $op, $teaser, $page) {
$node->$key = $value;
}
$node = book_navigation($node);
}
if ($page) {
menu_set_location($node->breadcrumb);
if ($page) {
menu_set_location($node->breadcrumb);
}
}
}
break;
......
......@@ -456,9 +456,9 @@ function book_nodeapi(&$node, $op, $teaser, $page) {
$node->$key = $value;
}
$node = book_navigation($node);
}
if ($page) {
menu_set_location($node->breadcrumb);
if ($page) {
menu_set_location($node->breadcrumb);
}
}
}
break;
......
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