[pmwiki-users] Update not deleting
Patrick R. Michaud
pmichaud at pobox.com
Wed Oct 11 18:05:51 CDT 2006
On Wed, Oct 11, 2006 at 06:45:13PM -0400, The Editor wrote:
> Not sure what was going on, but it seems to be getting past the error
> message now. However--when I use these lines of code, it gives the
> proper message that "Page <Group>.<Name> has been deleted.", but there
> on the pagelist, it still exists, and I can browse to it. Any ideas
> why it is not deleting?
>
> Here is the full code.
>
> if ($field == "destroy") {
> $p = explode(",", $value);
> foreach($p as $pp) {
> $pp = ZAPfixpage($pp);
> if ($pp != $pagename) {
> $oldpage = ReadPage($pp);
> $newpage = $oldpage;
> $newpage['text'] = "delete";
> UpdatePage($d, $oldpage, $newpage);
> $m .= "Page $pp has been deleted. ";
> }
> }
> }
What's the value of $d in the call to UpdatePage() ?
Pm
More information about the pmwiki-users
mailing list