[pmwiki-users] Ingredients . . .

Patrick R. Michaud pmichaud at pobox.com
Tue Feb 7 12:07:13 CST 2006


On Tue, Feb 07, 2006 at 06:46:26PM +0100, christian.ridderstrom at gmail.com wrote:
> On Mon, 6 Feb 2006, H. Fox wrote:
> 
> >   ## Get the name of this group (like {Group}) and page (like {$Name})
> >   $pagename = ResolvePageName($pagename);
> >   $group = PageVar($pagename, '$Group');
> >   $name = PageVar($pagename, '$Name');
> 
> Slightly off-topic here... is there a drawback to the solution above?
> What I mean is that it (partly as a side-effect) assigns $pagename which 
> might not be desired, or?

There's not really a drawback that I can see.  Even if the admin
doesn't perform $pagename = ResolvePageName($pagename), then
PmWiki will do it as soon as local.php has finished executing
so that it can then start loading per-group and per-page customizations.

Pm




More information about the pmwiki-users mailing list