diff options
author | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2022-11-21 11:51:38 +0000 |
---|---|---|
committer | petko <petko@524c5546-5005-0410-9a3e-e25e191bd360> | 2022-11-21 11:51:38 +0000 |
commit | 83d5fb59a855c983a1c17be6263d8d806ce0022b (patch) | |
tree | ed5dc45b6a1c4418124494a550e4b438abf0d415 /pmwiki.php | |
parent | b7ed59d4b0b4fa80e605fd1b5c6ebe620c475874 (diff) | |
download | pmwiki.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.php | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |