Merge "ApiDelete: pass in page title to 'deleted-scheduled' message"

This commit is contained in:
jenkins-bot 2021-10-21 00:45:39 +00:00 committed by Gerrit Code Review
commit 51644fcc78

View file

@ -111,7 +111,7 @@ class ApiDelete extends ApiBase {
}
$wasScheduled = $status->isGood() && $status->getValue() === false;
if ( $wasScheduled ) {
$this->addWarning( 'delete-scheduled' );
$this->addWarning( [ 'delete-scheduled', $titleObj->getPrefixedText() ] );
}
// Deprecated parameters