[pmwiki-devel] php ListPages question
Hans
design5 at softflow.co.uk
Wed Dec 5 13:26:29 CST 2007
Wednesday, December 5, 2007, 7:05:54 PM, Dominique wrote:
> The function expects a regexp pattern. You could compute one from a
> wildcard specification with something like:
> $plist = ListPages(GlobToPCRE(FixGlob($wildpat)));
This is great! I needed only slightly fixing, since GlobToPCRE returns
an array:
$pr = GlobToPCRE(FixGlob($wildpat));
$plist = ListPages("/$pr[0]/");
Hans
More information about the pmwiki-devel
mailing list