[Pmwiki-users] Patch: Allowing Diff*Fmt in new templates

Thomas -Balu- Walter list+pmwiki-users
Tue Mar 16 16:19:25 CST 2004


Sorry, I just noted that I forgot to delete the In-Reply-To: when
sending the mail. I repost it, because I am afraid that it will get
overread if it's in a thread that get completely marked as read.


On Tue, Mar 16, 2004 at 12:46:10PM +0100, Thomas -Balu- Walter wrote:
I am not sure if this change is enough, but it seems to work for me :). The
patch allows to modify the Diff*Fmt-Variables with the new templating system.

 -- Balu

--- scripts/tlayout.php.orig    Tue Mar 16 12:37:41 2004
+++ scripts/tlayout.php Tue Mar 16 12:41:44 2004
@@ -51,7 +51,7 @@

   $k = str_replace('$HTMLHeaders','<!--HeaderText-->',           # deprecated
     implode('',file(FmtPageName($tfilefmt,$pagename))));
-  $sect = preg_split('#[[<]!--(/?Page[A-Za-z]+Fmt|PageText|HeaderText)--[]>]#',
+  $sect = preg_split('#[[<]!--(/?Page[A-Za-z]+Fmt|/?Diff[A-Za-z]+Fmt|PageText|HeaderText)--[]>]#', // Balu 2004-03-16: Added /?Diff[A-Za-z]+Fmt|
     $k,0,PREG_SPLIT_DELIM_CAPTURE);
   $PageStartFmt = array_merge(array('headers:'),
     preg_split('/[[<]!--((?:wiki|file|function):.*?)--[]>]/',array_shift($sect),



More information about the pmwiki-users mailing list