diff --git a/includes/ApiQueryPageImages.php b/includes/ApiQueryPageImages.php index e585ec8..67e7b8a 100644 --- a/includes/ApiQueryPageImages.php +++ b/includes/ApiQueryPageImages.php @@ -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();