[pmwiki-users] powertools bug?
Hans
design5 at softflow.co.uk
Thu Jul 31 03:07:04 CDT 2008
Thursday, July 31, 2008, 7:46:17 AM, adam overton wrote:
> i don't have the best php style/experience, but this seems to do the
> trick for what i'm looking for. (perhaps someone knows a one-liner
> that's better than this?)
perhaps this:
$MarkupExpr['pagecount'] = 'PageCount($pagename, @$args[0])';
function PageCount($pn, $arg='') {
if ($arg=='') return 0;
return count(explode(",", $arg));
}
~Hans
More information about the pmwiki-users
mailing list