[pmwiki-users] Update not deleting

The Editor editor at fast.st
Wed Oct 11 19:13:23 CDT 2006


On 10/11/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> 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


Arrrgghhh!  Sorry again for a dumb mistake.  You spotted it!  Works
like a charm now.

Cheers,
Caveman




More information about the pmwiki-users mailing list