Addshore has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/157085

Change subject: Remove use of deprecated getPossibleErrors (since 1.24)
......................................................................

Remove use of deprecated getPossibleErrors (since 1.24)

Change-Id: I80146eed7bd3d1d16d7a1665ba5f6bb93cf87051
---
M api/ApiQuizGame.php
M api/ApiQuizGameVote.php
2 files changed, 0 insertions(+), 14 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/QuizGame 
refs/changes/85/157085/1

diff --git a/api/ApiQuizGame.php b/api/ApiQuizGame.php
index 5f886f0..5f2ca82 100644
--- a/api/ApiQuizGame.php
+++ b/api/ApiQuizGame.php
@@ -316,12 +316,6 @@
                );
        }
 
-       public function getPossibleErrors() {
-               return array_merge( parent::getPossibleErrors(), array(
-                       array( 'code' => 'invalidkey', 'info' => wfMessage( 
'quizgame-ajax-invalid-key' )->text() ),
-               ) );
-       }
-
        public function getExamples() {
                return array(
                        
'api.php?action=quizgame&quizaction=flagItem&comment=Inappropriate%20question&id=30&key=ThisObviouslyIsntARealKey',
diff --git a/api/ApiQuizGameVote.php b/api/ApiQuizGameVote.php
index fda5a73..a27dae7 100644
--- a/api/ApiQuizGameVote.php
+++ b/api/ApiQuizGameVote.php
@@ -215,14 +215,6 @@
                );
        }
 
-       public function getPossibleErrors() {
-               return array_merge( parent::getPossibleErrors(), array(
-                       array( 'code' => 'nonnumericanswer', 'info' => 
wfMessage( 'quizgame-ajax-nonnumeric-answer' )->text() ),
-                       array( 'code' => 'alreadyanswered', 'info' => 
wfMessage( 'quizgame-ajax-already-answered' )->text() ),
-                       array( 'code' => 'nosuchquestion', 'info' => wfMessage( 
'quizgame-ajax-invalid-id' )->text() ),
-               ) );
-       }
-
        public function getExamples() {
                return array(
                        
'api.php?action=quizgamevote&answer=3&id=245&key=ThisObviouslyIsntARealKey',

-- 
To view, visit https://gerrit.wikimedia.org/r/157085
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I80146eed7bd3d1d16d7a1665ba5f6bb93cf87051
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/QuizGame
Gerrit-Branch: master
Gerrit-Owner: Addshore <addshorew...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to