[pmwiki-devel] PostPage in recipe

Patrick R. Michaud pmichaud at pobox.com
Tue Mar 31 09:22:43 CDT 2009


On Tue, Mar 31, 2009 at 12:10:03PM +0200, Peter Bowers wrote:
> 2009/3/31 Frank Schweickert <f.schweickert at uva.nl>
> 
>     I added this to http://www.pmwiki.org/wiki/PmWiki/Functions
> 
>     Typically, the functions of pmwiki.php should ''not be called directly'' in
>     a cookbook recipe which is executed as include file in config.php. At this
>     early stage of PmWiki processing, many internal global variables are not
>     yet properly initialized, and these functions will behave unexpectedly. To
>     execute them timely, use the handler functions described in the articles
>     about [[Custom Markup]] and [[Custom Actions]].
> 
> 
> While this is true for UpdatePage() I'm not convinced it is a general rule...

Indeed, it's not a general rule, so I've taken the note out.

> BTW I documented the custom action business on a different page at http://
> www.pmwiki.org/wiki/PmWiki/CustomMarkupAlt#customaction after Hans wrote and
> before you posted here.  I suppose having it in 2 places is better than none...

I'd rather have it in just one -- otherwise it's more places to update
(or refer people to) when we make changes or answer questions.

Pm





More information about the pmwiki-devel mailing list