diff options
Diffstat (limited to 'extensions/ConfirmEdit/ApiFancyCaptchaReload.php')
-rw-r--r-- | extensions/ConfirmEdit/ApiFancyCaptchaReload.php | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/extensions/ConfirmEdit/ApiFancyCaptchaReload.php b/extensions/ConfirmEdit/ApiFancyCaptchaReload.php index 9b918d85..8cd28631 100644 --- a/extensions/ConfirmEdit/ApiFancyCaptchaReload.php +++ b/extensions/ConfirmEdit/ApiFancyCaptchaReload.php @@ -16,6 +16,9 @@ class ApiFancyCaptchaReload extends ApiBase { return true; } + /** + * @deprecated since MediaWiki core 1.25 + */ public function getDescription() { return 'Get a new FancyCaptcha.'; } @@ -24,11 +27,20 @@ class ApiFancyCaptchaReload extends ApiBase { return array(); } - public function getParamDescription() { - return array(); - } - + /** + * @deprecated since MediaWiki core 1.25 + */ public function getExamples() { return array( 'api.php?action=fancycaptchareload&format=xml' ); } + + /** + * @see ApiBase::getExamplesMessages() + */ + protected function getExamplesMessages() { + return array( + 'action=fancycaptchareload' + => 'apihelp-fancycaptchareload-example-1', + ); + } } |