[pmwiki-devel] ResolvePageName() before config.php
Petko Yotov
5ko at free.fr
Mon Apr 20 02:38:00 CDT 2009
On Monday 20 April 2009 08:27:47 Peter Bowers wrote:
> Wouldn't it make better sense to call ResolvePageName() *before*
> config.php is included? Is there a down-side to this?
Yes there is. The variables $DefaultPage, $DefaultGroup, $DefaultName,
$GroupPattern, $NamePattern, need to be set in config.php by many wikis
before calling ResolvePageName(). Notably and importantly, setting a
different encoding, like in XLPage() or xlpage-utf-8.php should be done prior
to ResolvePageName(), or pages with international characters break or
disappear (they may show in pagelists but you cannot open them, or
vice-versa).
Thanks,
Petko
More information about the pmwiki-devel
mailing list