mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-12 01:11:15 +00:00
Start removing/fixing calls to deprecated methods in WMF used extensions
This commit is contained in:
parent
195cd5ede0
commit
ed6fb40c5c
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue