From 9632b0b00f1da66805a15f895df0629f196aadf7 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 6 Oct 2003 08:53:17 +0000 Subject: - Fixed book preview problem. Patch by Kjartan. --- modules/book.module | 4 ++-- modules/book/book.module | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'modules') 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) { diff --git a/modules/book/book.module b/modules/book/book.module index 808fc39f1..652c5a968 100644 --- a/modules/book/book.module +++ b/modules/book/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) { -- cgit v1.2.3