apply patch from Bug 32501 - [QuestyCaptcha] Help page is broken

Fixes:

  When trying to open the help page, the following messages appear:
<pre>
Notice: Undefined property: QuestyCaptcha::$storage in
/.../extensions/ConfirmEdit/QuestyCaptcha.class.php on line 68

Fatal error: Call to a member function cookiesNeeded() on a non-object in
/.../extensions/ConfirmEdit/QuestyCaptcha.class.php on line 68
</pre>

Might need to be merged so Extension Distributor can use it?
This commit is contained in:
Mark A. Hershberger 2011-12-01 16:24:49 +00:00
parent d039186114
commit d40e00b39a
Notes: Mark A. Hershberger 2011-12-01 16:24:49 +00:00

View file

@ -65,7 +65,7 @@ class QuestyCaptcha extends SimpleCaptcha {
global $wgOut; global $wgOut;
$wgOut->setPageTitle( wfMsg( 'captchahelp-title' ) ); $wgOut->setPageTitle( wfMsg( 'captchahelp-title' ) );
$wgOut->addWikiText( wfMsg( 'questycaptchahelp-text' ) ); $wgOut->addWikiText( wfMsg( 'questycaptchahelp-text' ) );
if ( $this->storage->cookiesNeeded() ) { if ( CaptchaStore::get()->cookiesNeeded() ) {
$wgOut->addWikiText( wfMsg( 'captchahelp-cookies-needed' ) ); $wgOut->addWikiText( wfMsg( 'captchahelp-cookies-needed' ) );
} }
} }