[pmwiki-users] FoxEdit & Category

Hans design5 at softflow.co.uk
Wed Jun 17 02:55:31 CDT 2009


Wednesday, June 17, 2009, 8:04:13 AM, adam overton wrote:

> i actually just figured this part out (sort of) - i saw that in
> Fox, Hans made his UpdatePage() function work by limiting which
> functions it calls, by throwing the wanted function(s) into a 4th
> slot '$fnlist' - UpdatePage($pagename, $old, $new, $fnlist)
> i found that throwing in something like array('SaveAttributes') seemed to prevent the errors.

To clarify: fox.php has not got an alternative UpdatePage function.
UpdatePage() is called, and the array $EditFunctions is passed on.
a few of these edit functions are re moved from the array, as they
are not needed in the context of Fox saving a page. Fox uses the
$EditFunctions array as it is defined before, which is usually done
by default in pmwiki.php. This default includes SaveAttributes as well.
If SaveAtributes is your problem (and it seems to be), then something
else in your setup redefines the $EditFunctions array before fox.php
runs. Check if anywhere, config.php and included scripts, $EditFunctions
is defined, and lacks the element of 'SaveAtributes'.


  ~Hans




More information about the pmwiki-users mailing list