From b6f1c9c739c6fe15bf3a7dffe5d5bfd20ec4a948 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 4 Nov 2001 15:57:43 +0000 Subject: - node system: + fixed a typo in node_load(): it should be faster now - book module: + removed the functions book_parent() and book_parent_query() as they were no longer needed. Gerhard & co: this should fix the occasional SQL errors you get, and should improve performance. + made the "next", "previous" and "up" links work correctly ... + XHTML-ified the code + added some missing translations I'm working on the book module now to make it possible to update book pages. --- node.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'node.php') diff --git a/node.php b/node.php index 14009a864..3e5c7520d 100644 --- a/node.php +++ b/node.php @@ -95,11 +95,10 @@ elseif ($number) { if (node_access("view", $node)) { if (isset($revision)) { - node_render($node->revisions[$revision]["node"]); - } - else { - node_render($node); + $node = $node->revisions[$revision]["node"]; } + + node_render($node); } else { node_failure(); -- cgit v1.2.3