aboutsummaryrefslogtreecommitdiff
path: root/pmwiki.php
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2022-11-21 11:51:38 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2022-11-21 11:51:38 +0000
commit83d5fb59a855c983a1c17be6263d8d806ce0022b (patch)
treeed5dc45b6a1c4418124494a550e4b438abf0d415 /pmwiki.php
parentb7ed59d4b0b4fa80e605fd1b5c6ebe620c475874 (diff)
downloadpmwiki.svn-83d5fb59a855c983a1c17be6263d8d806ce0022b.tar.bz2
PrePrintFmt: $PageStartFmt processed after pages for (:noleft:) etc. to work.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4246 524c5546-5005-0410-9a3e-e25e191bd360
Diffstat (limited to 'pmwiki.php')
-rw-r--r--pmwiki.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/pmwiki.php b/pmwiki.php
index ba01e858..1b525601 100644
--- a/pmwiki.php
+++ b/pmwiki.php
@@ -1660,7 +1660,10 @@ function Redirect($pagename, $urlfmt='$PageUrl', $redirecturl=null) {
## This function processes any wiki pages and functions to HTML before printing
## headers and styles, to allow recipes and wikistyles from sidebars and footers
function PrePrintFmt($pagename,$fmt) {
+ global $PageStartFmt;
foreach($fmt as $k=>$x) {
+ # &$PageStartFmt processed after pages for (:noleft:) etc. to work
+ if ($x == $PageStartFmt) continue;
if (is_array($x)) {
$fmt[$k] = PrePrintFmt($pagename,$x);
continue;