From: Sam Reed Date: Wed, 23 Nov 2011 20:37:13 +0000 (+0000) Subject: Fix hook copy paste fail X-Git-Tag: 1.31.0-rc.0~26317 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=cd2d20fe8fe871febf000d06b2b906f99cf718fb;p=lhc%2Fweb%2Fwiklou.git Fix hook copy paste fail Move rest of captcha params out of api/ApiEditPage.php --- diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index aeed7e63f7..f65a49840a 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -239,13 +239,6 @@ class ApiEditPage extends ApiBase { $ep->setContextTitle( $titleObj ); $ep->importFormData( $req ); - if ( isset( $params['captchaid'] ) && !is_null( $params['captchaid'] ) ) { - $wgRequest->setVal( 'wpCaptchaId', $params['captchaid'] ); - } - if ( isset( $params['captchaword'] ) && !is_null( $params['captchaword'] ) ) { - $wgRequest->setVal( 'wpCaptchaWord', $params['captchaword'] ); - } - // Run hooks // Handle APIEditBeforeSave parameters $r = array();