[pmwiki-users] AuthUser and DefaultGroup and farmconfig

Mikael Nilsson mini at nada.kth.se
Sun Dec 3 07:31:38 CST 2006


sön 2006-12-03 klockan 13:28 +0000 skrev marc:
> Mikael Nilsson said...
> > I'm sure this must have been asked before.
> > 
> > I'm having a problem with a DefaultGroup and DefaultName setting that
> > will not stick. I think I know why - essentially, the first call to
> > ResolvePageName is made in authuser.php, which I call *before* setting
> > any of them.
> > 
> > Now, I'm sharing admins across a set of fields in a farm, and they are
> > configured in farmconfig.php, and thus the call to authuser.php is made
> > there.
> > 
> > The DefaultGroup/Name is set in a field's config.php, thus after
> > authuser.php is called, resulting in the default page being wrong
> > 
> > Any hints on what to do?
> 
> What I did (following Pm's advice) was create a file that performs the 
> name changes, then include it before calling authuser.php. This file can 
> sit in field/local
> 
> That is, in farmconfig.php
> 
>   if (file_exists("local/fieldconfig.php"))
>     include_once("local/fieldconfig.php");
> 
>   include_once("$FarmD/scripts/authuser.php");

Right, that's similar to my solution. Any reason not to include
config.php in that fashion?

/Mikael

-- 
Plus ça change, plus c'est la même chose





More information about the pmwiki-users mailing list