[pmwiki-users] php question

Hans design5 at softflow.co.uk
Wed Feb 6 16:15:39 CST 2008


try this (untested):

$MarkupExpr['WGImagePage'] = 'ExtractWikiGalleryImagePage($pagename,$args[0])';

function ExtractWikiGalleryImagePage($pn, $gallerypicture) {
   return preg_replace("/(.*?\\/?.*)(\\/.*)/", "$1", $gallerypicture);
}

  ~Hans




More information about the pmwiki-users mailing list