X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiDelete.php;h=a63dee6fc186309b62a2ed0b14d5e03bcc52f01d;hp=e19f1f221681997728f73019f90a2ddfde45d49f;hb=a15339a9b55338e72bccf033103e423eedb4c208;hpb=faf7cc4a09848c538320bd2b9067b1a77c0a0183 diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index e19f1f2216..a63dee6fc1 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -116,7 +116,8 @@ class ApiDelete extends ApiBase { $hasHistory = false; $reason = $page->getAutoDeleteReason( $hasHistory ); if ( $reason === false ) { - return Status::newFatal( 'cannotdelete', $title->getPrefixedText() ); + // Should be reachable only if the page has no revisions + return Status::newFatal( 'cannotdelete', $title->getPrefixedText() ); // @codeCoverageIgnore } }