forked from github/kensanata.oddmuse
permanent-anchors.pl: report page deletion status
Make sure the status is returned if page deletion fails.
This commit is contained in:
@@ -167,7 +167,8 @@ anchors.
|
||||
*DeletePage = *NewPermanentAnchorsDeletePage;
|
||||
|
||||
sub NewPermanentAnchorsDeletePage {
|
||||
OldPermanentAnchorsDeletePage(@_);
|
||||
my $status = OldPermanentAnchorsDeletePage(@_);
|
||||
return $status if $status; # this would be the error message
|
||||
DeletePermanentAnchors(@_); # the only parameter is $id
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user