summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-10-13 19:18:39 +0000
committerDries Buytaert <dries@buytaert.net>2003-10-13 19:18:39 +0000
commite688dfe6dbb5338a6cfe13775aacba70534e9a36 (patch)
tree5a1b29bf310aa4534cddbfa502ea440cc674f752 /modules/book.module
parent2ff32224580139f021eed6ac2eff5b05bb709ff7 (diff)
downloadbrdo-e688dfe6dbb5338a6cfe13775aacba70534e9a36.tar.gz
brdo-e688dfe6dbb5338a6cfe13775aacba70534e9a36.tar.bz2
- Fixed prefix problem with the book module. Patch by Moshe.
- Usability improvements to the user module: removed some redundant menu items by taking advantage of the column sorting, added status messages and so on. Patch by Moshe plus some fixes. - Made the profile module use the table() function. Patch by Moshe. - Fixed breadcrumb spacing. Patch by Moshe. - Fixed colspan problem with node overview table. Patch by Stefan. - Fixed inconsistency with table sorting. Patch 0122 by Al.
Diffstat (limited to 'modules/book.module')
-rw-r--r--modules/book.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/book.module b/modules/book.module
index cdf123098..ce5de3faf 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -650,7 +650,7 @@ function book_page() {
function book_print($id = "", $depth = 1) {
global $base_url;
- $result = db_query("SELECT n.nid FROM {node} n INNER JOIN book b ON n.nid = b.nid WHERE n.status = 1 AND n.nid = %d AND (n.moderate = 0 OR n.revisions IS NOT NULL) ORDER BY b.weight, n.title", $id);
+ $result = db_query("SELECT n.nid FROM {node} n INNER JOIN {book} b ON n.nid = b.nid WHERE n.status = 1 AND n.nid = %d AND (n.moderate = 0 OR n.revisions IS NOT NULL) ORDER BY b.weight, n.title", $id);
while ($page = db_fetch_object($result)) {
// load the node: