diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-11-04 15:57:43 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-11-04 15:57:43 +0000 |
commit | b6f1c9c739c6fe15bf3a7dffe5d5bfd20ec4a948 (patch) | |
tree | 3cb240a3dbdec9ece91662d377ec6a2a9026b644 /node.php | |
parent | 29364d5b5543b7d16cce9147a37861a41750fb83 (diff) | |
download | brdo-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.php | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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(); |