[pmwiki-users] conditional (:if enabled ...:)
Patrick R. Michaud
pmichaud at pobox.com
Sat Apr 16 08:20:36 CDT 2005
On Sat, Apr 16, 2005 at 12:34:06AM +0100, Hans wrote:
> Patrick, I noticed you changed on PmWiki.ConditionalMarkup
>
> $Conditions['enabled'] = "\$GLOBALS[\$condparm]==1";
> to
> $Conditions['enabled'] = "\$GLOBALS['\$condparm']>''";
>
> but the latter does not work, whereas the first works fine.
Oops, you're right, I got my quotings confused. So I think it should be
$Conditions['enabled'] = "\$GLOBALS[\$condparm]>''";
since (in the standard programming sense) any non-zero value is
considered "enabled", not just 1.
Was this one of those conditions that we were thinking of putting
directly into the core...?
Pm
More information about the pmwiki-users
mailing list