[Home]WikiBugs/NotDeleteWhenItDoesNotExist

UseModWiki | WikiBugs | RecentChanges | Preferences

Refresh "Delete Page" makes process of deleting again, even if the page doesn't exist.

The fix

sub DoDeletePage {
...
    if (-f &GetLockedPageFile($id))   {
      print Ts('%s can not be deleted because it is locked.', $id);
    + }
    + if (!-f &GetPageFile($id)) {
      + print Ts('%s can not be deleted because it does not exist.', $id);
    } else {
      # Must lock because of RC-editing
      &RequestLock() or die(T('Could not get editing lock'));
....
--JuanmaMP

UseModWiki | WikiBugs | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited September 26, 2009 6:28 pm by JuanmaMP (diff)
Search: