[pmwiki-users] CSS in Wiki Pages: new stylepage.php

Hans design5 at softflow.co.uk
Tue Aug 29 04:37:34 CDT 2006


update of stylepage.php:
http://www.pmwiki.org/wiki/Cookbook/CSSInWikiPages

I fixed $EnableStylePage, which did not work.

I also changed the condition under which the caching routine works, as
it failed to create cached css files sometimes, i.e. when no
filemodtime or LastModTime was present.

It now starts with the modified condition:

   $fmodtime = @filemtime($cssfile);
   if ($fmodtime < $LastModTime || $fmodtime==0 || $LastModTime==0) {

I don't know if this is the best way, but I had to add the two OR
conditions to get it creating css files.

Hans





More information about the pmwiki-users mailing list