[Pmwiki-users] Re: Request for method to let plugins execute code after stdconfig.php

Patrick R. Michaud pmichaud
Fri Jul 16 09:21:19 CDT 2004


On Fri, Jul 16, 2004 at 04:54:51PM +0200, Christian Ridderstr?m wrote:
> On Fri, 16 Jul 2004, Jonathan Scott Duff wrote:
> 
> > On Fri, Jul 16, 2004 at 11:48:39AM +0200, Christian Ridderstr??m wrote:
> > > I'm helping John with his work on page drafts, and he's got some
> > > difficulties in making the plugin do all that he wants. Basically I think
> > > he needs to let the code modify some variables after stdconfig.php, or
> > > possibly after other plugins, have done their job.
> > 
> > Doesn't that imply that he should just execute stdconfig.php and/or
> > the other plugins as part of his plugin?
> 
> I'm not sure it's a good idea to let a plugin include 'stdconfig.php'.

I've always held the position that it's okay for a script to
do include_once() on any other script that it depends on, including
stdconfig.php.  However, scripts that do this need to make it clear
to others that any other local customizations need to be done before
the script is loaded.

But if that's too distasteful, I still like the "include_after"
approach suggested in my previous message.

Pm



More information about the pmwiki-users mailing list