summaryrefslogtreecommitdiff
path: root/node.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-11-04 15:57:43 +0000
committerDries Buytaert <dries@buytaert.net>2001-11-04 15:57:43 +0000
commitb6f1c9c739c6fe15bf3a7dffe5d5bfd20ec4a948 (patch)
tree3cb240a3dbdec9ece91662d377ec6a2a9026b644 /node.php
parent29364d5b5543b7d16cce9147a37861a41750fb83 (diff)
downloadbrdo-b6f1c9c739c6fe15bf3a7dffe5d5bfd20ec4a948.tar.gz
brdo-b6f1c9c739c6fe15bf3a7dffe5d5bfd20ec4a948.tar.bz2
- 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.
Diffstat (limited to 'node.php')
-rw-r--r--node.php7
1 files changed, 3 insertions, 4 deletions
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();