diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-10-06 08:53:17 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-10-06 08:53:17 +0000 |
commit | 9632b0b00f1da66805a15f895df0629f196aadf7 (patch) | |
tree | de7ad34f3582b7fbf1e7111a2a30605d4fd1e1db /modules/book.module | |
parent | efe9006afb9347cf2378b80093fa6fddf875ddd9 (diff) | |
download | brdo-9632b0b00f1da66805a15f895df0629f196aadf7.tar.gz brdo-9632b0b00f1da66805a15f895df0629f196aadf7.tar.bz2 |
- Fixed book preview problem. Patch by Kjartan.
Diffstat (limited to 'modules/book.module')
-rw-r--r-- | modules/book.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/book.module b/modules/book.module index 808fc39f1..652c5a968 100644 --- a/modules/book.module +++ b/modules/book.module @@ -49,7 +49,7 @@ function book_access($op, $node) { /* ** Only registered users can update book pages. Given the nature ** of the book module this is considered to be a good/safe idea. - ** One can only upate a book page if there are no suggested updates + ** One can only update a book page if there are no suggested updates ** of that page waiting for approval, when it is not a PHP-page and ** as long as the "create new revision"-bit is set. That is, only ** updates that don't overwrite the current or pending information @@ -355,7 +355,7 @@ function book_content($node) { ** the moderation queue. */ - if ($node->moderate && arg(0) != "queue") { + if ($op != t("Preview") && $node->moderate && arg(0) != "queue") { $revision = book_revision_load($node, array("moderate" => 0, "status" => 1)); if ($revision) { |