[pmwiki-users] Problems causedf by recent PmWiki updates
Patrick R. Michaud
pmichaud at pobox.com
Mon Mar 12 12:42:39 CDT 2007
On Mon, Mar 12, 2007 at 04:03:06PM -0000, marc wrote:
> Adding back the ResolvePageName() in or before authuser.php fixes the
> problem.
>
> As I mentioned, removing the 'get rid of main' code removes the problem;
> so it seems that it is associated with that code. I call this before
> authuser, but placing it after made no difference.
>
> 'get rid of main' does:
>
> $pagename = MakePageName('Main.HomePage', $pagename);
>
> So, presumably,
>
> $pagename = ResolvePageName(MakePageName('Main.HomePage', $pagename));
>
> should fix the problem, which it seems to.
Actually, I don't think the call to MakePageName() is needed at all,
because ResolvePageName() already does that. So, simply doing
$pagename = ResolvePageName($pagename);
after the changes to $PagePathFmt should be sufficient.
We probably need to update the GetRidOfMain recipe to reflect this.
Pm
More information about the pmwiki-users
mailing list