Merge "Remove backward usage of ApiBase::dieUsage"

This commit is contained in:
jenkins-bot 2018-08-20 01:03:58 +00:00 committed by Gerrit Code Review
commit e716b5c13f

View file

@ -79,13 +79,9 @@ class ApiQueryPageImages extends ApiQueryBase {
$params = $this->extractRequestParams();
$prop = array_flip( $params['prop'] );
if ( !count( $prop ) ) {
if ( is_callable( [ $this, 'dieWithError' ] ) ) {
$this->dieWithError(
[ 'apierror-paramempty', $this->encodeParamName( 'prop' ) ], 'noprop'
);
} else {
$this->dieUsage( 'No properties selected', '_noprop' );
}
$this->dieWithError(
[ 'apierror-paramempty', $this->encodeParamName( 'prop' ) ], 'noprop'
);
}
$allTitles = $this->getTitles();