diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-03-31 14:58:37 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-03-31 14:58:37 +0000 |
commit | d1a07a2e8f21e402c85799215f37bd7f3cb685f1 (patch) | |
tree | 845bccd135828c5c39584bde0d199dff941b8180 /modules/book.module | |
parent | d9e72f37de62ae2c96925ec5f75c7e6bd449b59b (diff) | |
download | brdo-d1a07a2e8f21e402c85799215f37bd7f3cb685f1.tar.gz brdo-d1a07a2e8f21e402c85799215f37bd7f3cb685f1.tar.bz2 |
- fixed "you-have-to-logout-and-login-before-permissions-change" bug
(reported by UnConeD)
- added "add node" link to book selection box and made it display the
current location
- removed tabs and whitespaces from themes - done automatically
Diffstat (limited to 'modules/book.module')
-rw-r--r-- | modules/book.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/book.module b/modules/book.module index 8009ae27e..59c1b35d4 100644 --- a/modules/book.module +++ b/modules/book.module @@ -80,7 +80,7 @@ function book_toc($parent = 0, $offset = 0, $toc = array()) { $result = db_query("SELECT n.*, b.* FROM node n LEFT JOIN book b ON n.nid = b.nid AND n.lid = b.lid WHERE n.type = 'book' AND n.status = '$status[posted]' AND b.parent = '$parent' ORDER BY b.weight"); while ($node = db_fetch_object($result)) { $toc[$node->nid] = ($offset ? $offset : "") ."". ++$number .". $node->title"; - $toc = book_toc($node->nid, ($offset ? "$offset." : "") ."$number.", $toc); + $toc = book_toc($node->nid, ($offset ? $offset : "") ."$number.", $toc); } return $toc; } |