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

to set book breadcrumbs for nodes that weren't books.
4.5.x
Dries Buytaert 2004-07-31 16:23:01 +00:00
parent ca3e769fa6
commit f97c3367b0
2 changed files with 6 additions and 6 deletions

View File

@ -456,9 +456,9 @@ function book_nodeapi(&$node, $op, $teaser, $page) {
$node->$key = $value; $node->$key = $value;
} }
$node = book_navigation($node); $node = book_navigation($node);
} if ($page) {
if ($page) { menu_set_location($node->breadcrumb);
menu_set_location($node->breadcrumb); }
} }
} }
break; break;

View File

@ -456,9 +456,9 @@ function book_nodeapi(&$node, $op, $teaser, $page) {
$node->$key = $value; $node->$key = $value;
} }
$node = book_navigation($node); $node = book_navigation($node);
} if ($page) {
if ($page) { menu_set_location($node->breadcrumb);
menu_set_location($node->breadcrumb); }
} }
} }
break; break;