* (bug 32609) API: Move captchaid/captchaword of action=edit from core to Captcha...
[toast/cookiecaptcha.git] / ConfirmEditHooks.php
index dcdf49f7b05058b0db6ab32271f3c32b35420ba1..137821c4941909e7d6fd6c4fdb6b35198b91c797 100644 (file)
@@ -5,7 +5,7 @@ class ConfirmEditHooks {
        /**
         * Get the global Captcha instance
         *
-        * @return Captcha
+        * @return Captcha|SimpleCaptcha
         */
        static function getInstance() {
                global $wgCaptcha, $wgCaptchaClass;
@@ -56,6 +56,14 @@ class ConfirmEditHooks {
        static function confirmEmailUser( $from, $to, $subject, $text, &$error ) {
                return self::getInstance()->confirmEmailUser( $from, $to, $subject, $text, $error );
        }
+
+       public static function APIGetAllowedParams( &$module, &$params ) {
+               return self::getInstance()->APIGetAllowedParams( $module, $params );
+       }
+
+       public static function APIGetParamDescription( &$module, &$desc ) {
+               return self::getInstance()->APIGetParamDescription( $module, $desc );
+       }
 }
 
 class CaptchaSpecialPage extends UnlistedSpecialPage {