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. --- includes/node.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes/node.inc') 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); } -- cgit v1.2.3