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(); $params = $this->extractRequestParams();
$prop = array_flip( $params['prop'] ); $prop = array_flip( $params['prop'] );
if ( !count( $prop ) ) { if ( !count( $prop ) ) {
if ( is_callable( [ $this, 'dieWithError' ] ) ) { $this->dieWithError(
$this->dieWithError( [ 'apierror-paramempty', $this->encodeParamName( 'prop' ) ], 'noprop'
[ 'apierror-paramempty', $this->encodeParamName( 'prop' ) ], 'noprop' );
);
} else {
$this->dieUsage( 'No properties selected', '_noprop' );
}
} }
$allTitles = $this->getTitles(); $allTitles = $this->getTitles();