From da5312fb70658685c127f23bb8ac111379c796da Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sat, 18 Aug 2018 17:52:45 +0200 Subject: [PATCH] Remove backward usage of ApiBase::dieUsage ApiBase::dieUsage is deprecated since 1.29, this extension required 1.29 Change-Id: Ide05c1dc6a92708deaf859e6963b607194133b5d --- includes/ApiQueryPageImages.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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();