Start removing/fixing calls to deprecated methods in WMF used extensions

This commit is contained in:
Sam Reed 2010-10-29 15:14:44 +00:00
parent 195cd5ede0
commit ed6fb40c5c
2 changed files with 2 additions and 6 deletions

View file

@ -2,14 +2,10 @@
class ConfirmEditHooks {
static function getInstance() {
global $wgCaptcha, $wgCaptchaClass, $wgExtensionMessagesFiles;
global $wgCaptcha, $wgCaptchaClass;
static $done = false;
if ( !$done ) {
$done = true;
wfLoadExtensionMessages( 'ConfirmEdit' );
if ( isset( $wgExtensionMessagesFiles[$wgCaptchaClass] ) ) {
wfLoadExtensionMessages( $wgCaptchaClass );
}
$wgCaptcha = new $wgCaptchaClass;
}
return $wgCaptcha;

View file

@ -23,7 +23,7 @@ class MathCaptcha extends SimpleCaptcha {
$form = '<table><tr><td>' . $this->fetchMath( $sum ) . '</td>';
$form .= '<td>' . Xml::input( 'wpCaptchaWord', false, false, array( 'tabindex' => '1' ) ) . '</td></tr></table>';
$form .= Xml::hidden( 'wpCaptchaId', $index );
$form .= Html::hidden( 'wpCaptchaId', $index );
return $form;
}