summaryrefslogtreecommitdiff
path: root/extensions/ConfirmEdit/ApiFancyCaptchaReload.php
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:30:47 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-05-01 15:30:47 -0400
commit7e85254903c7c0cb49e381f16b18441ea7b058cc (patch)
treeb22328fcf4c8408fc25a7acb73d1cb1089cd82ac /extensions/ConfirmEdit/ApiFancyCaptchaReload.php
parent1de335ad3f395ca6861085393ba366a9e3fb4a0d (diff)
parent1a365e77dfb8825136626202b1df462731b42060 (diff)
Merge commit '1a365e'
Diffstat (limited to 'extensions/ConfirmEdit/ApiFancyCaptchaReload.php')
-rw-r--r--extensions/ConfirmEdit/ApiFancyCaptchaReload.php46
1 files changed, 0 insertions, 46 deletions
diff --git a/extensions/ConfirmEdit/ApiFancyCaptchaReload.php b/extensions/ConfirmEdit/ApiFancyCaptchaReload.php
deleted file mode 100644
index 8cd28631..00000000
--- a/extensions/ConfirmEdit/ApiFancyCaptchaReload.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-/**
- * Api module to reload FancyCaptcha
- *
- * @ingroup API
- * @ingroup Extensions
- */
-class ApiFancyCaptchaReload extends ApiBase {
- public function execute() {
- # Get a new FancyCaptcha form data
- $captcha = new FancyCaptcha();
- $captchaIndex = $captcha->getCaptchaIndex();
-
- $result = $this->getResult();
- $result->addValue( null, $this->getModuleName(), array ( 'index' => $captchaIndex ) );
- return true;
- }
-
- /**
- * @deprecated since MediaWiki core 1.25
- */
- public function getDescription() {
- return 'Get a new FancyCaptcha.';
- }
-
- public function getAllowedParams() {
- 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',
- );
- }
-}