r49420 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49419‎ | r49420 | r49421 >
Date:13:44, 12 April 2009
Author:tstarling
Status:deferred
Tags:
Comment:
Call wfSetupSession() from newRequestedSession(), should fix the reports of first-time login failure.
Modified paths:
  • /trunk/extensions/SecurePoll/includes/Auth.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SecurePoll/includes/Auth.php
@@ -137,6 +137,9 @@
138138 * @return Status
139139 */
140140 function newRequestedSession( $election ) {
 141+ if ( session_id() == '' ) {
 142+ wfSetupSession();
 143+ }
141144 $status = $this->requestLogin( $election );
142145 if ( !$status->isOK() ) {
143146 return $status;

Status & tagging log