[pmwiki-devel] customizing the delete() function

Ben Stallings Ben at InterdependentWeb.com
Fri Dec 15 17:22:48 CST 2006

OK, so I wasn't totally mistaken... delete() is a PageStore method, but 
the PostPage() function (which *is* a global function) assumes the page 
to be deleted is in $WikiDir and so won't call the delete() method of 
any other object.

I suppose I can change $EditFunctions to call a different function 
instead of PostPage(), and duplicate all of PostPage(), changing only 
the reference to $WikiDir... but then updates to PostPage() would leave 
me behind...

I only suggest it for 2.2 at this late hour because it seems to be the 
only remaining obstacle to supporting other types of PageStore objects, 
which I understood to be a long-term goal.

Sorry for the whiplash!  --Ben

More information about the pmwiki-devel mailing list