[pmwiki-users] EnablePostAuthorRequired in combination with author.php

Petko Yotov 5ko at 5ko.fr
Mon Dec 21 01:33:03 CST 2009


On Monday 21 December 2009 08:11:49 Holger Kremb wrote:
> Petko Yotov schrieb:
> > On Sunday 20 December 2009 23:52:10 Holger Kremb wrote:
> >> could it be that $EnablePostAuthorRequired = 1 does not function, if
> >> author.php is included like include_once("$FarmD/scripts/author.php")?
> >
> > Hello. Just define $EnablePostAuthorRequired = 1; before the include_once
> > line.
>
> It's already defined before the include_once line. :-|

Then some other script or recipe may include the author.php file earlier. I'd 
place the $EnablePostAuthorRequired = 1; before any other include_once() or 
include() lines.

Petko



More information about the pmwiki-users mailing list