From 4befadac109b0b5527e73c713ecd7e886b2dcaf0 Mon Sep 17 00:00:00 2001 From: e107steved Date: Thu, 16 Sep 2010 13:05:11 +0000 Subject: [PATCH] Bugtracker #5046 - handle display of multi-page docs generated with TinyMCE --- page.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/page.php b/page.php index 0023f2d6a..147426d36 100644 --- a/page.php +++ b/page.php @@ -226,6 +226,17 @@ class pageClass if(preg_match_all("/\[newpage.*?\]/si", $this -> pageText, $pt)) { + if (substr($this->pageText, 0, 6) == '[html]') + { // Need to strip html bbcode from wysiwyg on multi-page docs (handled automatically on single pages) + if (substr($this->pageText, -7, 7) == '[/html]') + { + $this->pageText = substr($this->pageText, 6, -7); + } + else + { + $this->pageText = substr($this->pageText, 6); + } + } $pages = preg_split("/\[newpage.*?\]/si", $this -> pageText, -1, PREG_SPLIT_NO_EMPTY); $this -> multipageFlag = TRUE; }