mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-11-15 20:09:54 +00:00
Merge "Remove backward usage of ApiBase::dieUsage"
This commit is contained in:
commit
e716b5c13f
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue