[pmwiki-users] Group name variables
Patrick R. Michaud
pmichaud at pobox.com
Sat Jan 28 20:00:24 CST 2006
On Sat, Jan 28, 2006 at 05:32:41PM -0700, H. Fox wrote:
> On 1/28/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
>
> The question still remains though: How How does one acquire the group
> name in config.php?
>
> The following config.php, in beta21, does *not* stop the script.
>
> <?php if (!defined('PmWiki')) exit();
> $pagename = ResolvePageName($pagename);
> $group = PageVar($pagename, '{$Group}');
> if ($group) exit;
Argggh! I'm sure it's confusing (and therefore I'll probably have
to change it), but the braces are supposed to be left out of
the page variable, thus:
<?php if (!defined('PmWiki')) exit();
$pagename = ResolvePageName($pagename);
$group = PageVar($pagename, '$Group');
if ($group) exit;
Pm
More information about the pmwiki-users
mailing list