[pmwiki-users] FmtPageList undefined

Patrick R. Michaud pmichaud at pobox.com
Mon Jul 20 05:50:49 CDT 2009


On Mon, Jul 20, 2009 at 12:16:28AM -0700, adam overton wrote:
> Call to undefined function fmtpagelist()
> 
> i'm guessing that scripts/pagelist.php is being defined after config.php has
> been loaded. is that correct?

Correct.

> is there a way to be able to use the FmtPageList function within config or one
> of my own recipes?

In your recipe, do

    include_once('scripts/pagelist.php');

Note, however, that pagelist.php may itself depend on other things
being loaded.  The generic "correct" approach is to either handle things
in an action after everything has been loaded (preferred), or else
force a load of the entire standard configuration with:

    include_once('scripts/stdconfig.php');

Pm



More information about the pmwiki-users mailing list