User "Duplicatebug" posted a comment on MediaWiki.r104064. Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/104064#c26449 Commit summary:
* (bug 32609) API: Move captchaid/captchaword of action=edit from core to Captcha extension(s) Left setting of wpCaptchaId and wpCaptchaWord in core. Can't think of a sane way to check and set them via an extension (subclass and override, or a hook). Annoyingly APIEditBeforeSave doesn't pass the params array Comment: The AssertEdit extensions is grapping from $wgRequest, so that should work here (untested). The extension is than setting $wgRequest->setVal( 'wpCaptchaWord', $wgRequest->getVal( 'captchaword' ) ); You are register two APIEditBeforeSave hooks: <pre> -$wgHooks['APIEditBeforeSave'][] = 'ConfirmEditHooks::APIEditBeforeSave'; +$wgHooks['APIGetParamDescription'][] = 'ConfirmEditHooks::APIGetParamDescription'; </pre> _______________________________________________ MediaWiki-CodeReview mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview
