From f6d65e533c62f6deb21342d4901ece24497b433e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 4 Jun 2015 07:31:04 +0200 Subject: Update to MediaWiki 1.25.1 --- extensions/ConfirmEdit/ApiFancyCaptchaReload.php | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'extensions/ConfirmEdit/ApiFancyCaptchaReload.php') 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', + ); + } } -- cgit v1.2.2