$wgExtensionCredits['other'][] = array(
'name' => 'ConfirmEdit',
'author' => 'Brion Vibber',
- 'url' => 'http://meta.wikimedia.org/wiki/ConfirmEdit_extension',
+ 'url' => 'http://www.mediawiki.org/wiki/Extension:ConfirmEdit',
'description' => 'Simple captcha implementation',
);
function showHelp() {
global $wgOut, $ceAllowConfirmedEmail;
$wgOut->setPageTitle( wfMsg( 'captchahelp-title' ) );
- $wgOut->addWikiText( wfMsg( 'captchahelp-text' ) );
+ $wgOut->addWikiText( wfMsg( 'captchahelp-text', $this->storage->cookiesNeeded() ? wfMsg( 'captchahelp-cookies-needed' ) : '' ) );
}
}
function clear( $index ) {
unset( $_SESSION['captcha' . $index] );
}
+
+ function cookiesNeeded() {
+ return true;
+ }
}
class CaptchaCacheStore {
global $wgMemc;
$wgMemc->delete( wfMemcKey( 'captcha', $index ) );
}
+
+ function cookiesNeeded() {
+ return false;
+ }
}
} # End invocation guard