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 /includes | |
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 'includes')
-rw-r--r-- | includes/node.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/node.inc b/includes/node.inc index 6b803a9e7..bf64c0135 100644 --- a/includes/node.inc +++ b/includes/node.inc @@ -96,13 +96,14 @@ function node_load($conditions) { ** Retrieve the node: */ - $node = db_fetch_object(db_query("SELECT n.*, u.uid, u.name FROM node n LEFT JOIN users u ON u.uid = n.uid LEFT JOIN comments c ON c.lid = n.nid WHERE ". implode(" AND ", $cond))); + $node = db_fetch_object(db_query("SELECT n.*, u.uid, u.name FROM node n LEFT JOIN users u ON u.uid = n.uid WHERE ". implode(" AND ", $cond))); /* ** Unserialize the revisions field: */ if ($node->revisions) { + unset($node->revisions); $node->revisions = unserialize($node->revisions); } |