r36792 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r36791‎ | r36792 | r36793 >
Date:22:43, 29 June 2008
Author:daniel
Status:old
Tags:
Comment:
use wfSetupSession when message is submitted. Hopefully fixes captcha problem
Modified paths:
  • /trunk/extensions/ContactPage/SpecialContact.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ContactPage/SpecialContact.php
@@ -60,6 +60,8 @@
6161 wfDebug( "$fname: success.\n" );
6262 $f->showSuccess( );
6363 } else if ( "submit" == $action && $wgRequest->wasPosted() ) {#
 64+ wfSetupSession(); #NOTE: make sure we have a session. May be required for captchas to work.
 65+
6466 $token = $wgRequest->getVal( 'wpEditToken' );
6567
6668 if( $wgUser->isAnon() ) {

Status & tagging log