r24133 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24132‎ | r24133 | r24134 >
Date:21:30, 15 July 2007
Author:aaron
Status:old
Tags:
Comment:
*Don't forget to carry over email token
Modified paths:
  • /trunk/extensions/ConfirmAccount/ConfirmAccount_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ConfirmAccount/ConfirmAccount_body.php
@@ -252,10 +252,10 @@
253253 }
254254
255255 /**
256 - * Get a request ID from an emailconfirm token
 256+ * Get a request name from an emailconfirm token
257257 *
258 - * @param Sring $code
259 - * @returns Integer $reqID
 258+ * @param sring $code
 259+ * @returns string $name
260260 */
261261 function requestFromEmailToken( $code ) {
262262 $dbr = wfGetDB( DB_SLAVE );
@@ -378,7 +378,7 @@
379379 $row = $this->getRequest();
380380 if( !$row ) {
381381 $wgOut->addHTML( wfMsg('confirmaccount-badid') );
382 - $wgOut->returnToMain( null, $wgTitle );
 382+ $wgOut->returnToMain( true, $wgTitle );
383383 return;
384384 }
385385
@@ -440,7 +440,8 @@
441441 $dbw = wfGetDB( DB_MASTER );
442442 $dbw->update( 'user',
443443 array( 'user_email_authenticated' => $row->acr_email_authenticated,
444 - 'user_email_token_expires' => $row->acr_email_token_expires ),
 444+ 'user_email_token_expires' => $row->acr_email_token_expires,
 445+ 'user_email_token' => $row->acr_email_token ),
445446 array( 'user_id' => $user->getID() ),
446447 __METHOD__ );
447448 # OK, now remove the request
@@ -471,7 +472,7 @@
472473 $row = $this->getRequest();
473474 if( !$row ) {
474475 $wgOut->addHTML( wfMsg('confirmaccount-badid') );
475 - $wgOut->returnToMain( null, $wgTitle );
 476+ $wgOut->returnToMain( true, $wgTitle );
476477 return;
477478 }
478479
@@ -552,7 +553,7 @@
553554 else
554555 $wgOut->addWikiText( wfMsg( "confirmaccount-del" ) );
555556
556 - $wgOut->returnToMain( null, $wgTitle );
 557+ $wgOut->returnToMain( true, $wgTitle );
557558 }
558559
559560 function showList() {

Status & tagging log