summaryrefslogtreecommitdiff
path: root/modules/book.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-10-06 08:53:17 +0000
committerDries Buytaert <dries@buytaert.net>2003-10-06 08:53:17 +0000
commit9632b0b00f1da66805a15f895df0629f196aadf7 (patch)
treede7ad34f3582b7fbf1e7111a2a30605d4fd1e1db /modules/book.module
parentefe9006afb9347cf2378b80093fa6fddf875ddd9 (diff)
downloadbrdo-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.module4
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) {