summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2020-10-02 15:24:06 -0400
committerBrian Evans <grknight@gentoo.org>2020-10-02 15:24:06 -0400
commit60dd5fd95847643eab04ce173f0774c9c584e795 (patch)
tree52299ac4e3c5c69df75997bfd7d62b71ef9e0089 /MLEB/Translate/api/ApiGroupReview.php
parentUpdate Widgets to 1.35 (diff)
downloadextensions-60dd5fd95847643eab04ce173f0774c9c584e795.tar.gz
extensions-60dd5fd95847643eab04ce173f0774c9c584e795.tar.bz2
extensions-60dd5fd95847643eab04ce173f0774c9c584e795.zip
Update MLEB to 2020.07
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'MLEB/Translate/api/ApiGroupReview.php')
-rw-r--r--MLEB/Translate/api/ApiGroupReview.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/MLEB/Translate/api/ApiGroupReview.php b/MLEB/Translate/api/ApiGroupReview.php
index 67583854..cb448ccd 100644
--- a/MLEB/Translate/api/ApiGroupReview.php
+++ b/MLEB/Translate/api/ApiGroupReview.php
@@ -22,7 +22,7 @@ class ApiGroupReview extends ApiBase {
$code = $requestParams['language'];
if ( !$group || MessageGroups::isDynamic( $group ) ) {
- $this->dieWithError( [ 'apierror-missingparam', 'group' ] );
+ $this->dieWithError( [ 'apierror-badparameter', 'group' ] );
}
$stateConfig = $group->getMessageGroupStates()->getStates();
if ( !$stateConfig ) {
@@ -35,11 +35,9 @@ class ApiGroupReview extends ApiBase {
$this->dieBlocked( $user->getBlock() );
}
- $requestParams = $this->extractRequestParams();
-
$languages = Language::fetchLanguageNames();
if ( !isset( $languages[$code] ) ) {
- $this->dieWithError( [ 'apierror-missingparam', 'language' ] );
+ $this->dieWithError( [ 'apierror-badparameter', 'language' ] );
}
$targetState = $requestParams['state'];