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

Thomas -Balu- Walter list+pmwiki-users
Tue Mar 16 04:46:30 CST 2004


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