r47640 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47639‎ | r47640 | r47641 >
Date:22:44, 21 February 2009
Author:demon
Status:deferred
Tags:
Comment:
Only set cookies if it's us :p
Modified paths:
  • /trunk/phase3/includes/specials/SpecialResetpass.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialResetpass.php
@@ -203,9 +203,11 @@
204204 if ( !$this->mSelfChange ) {
205205 $log = new LogPage( 'password' );
206206 $log->addEntry( 'reset', $user->getUserPage(), $this->mComment );
 207+ } else {
 208+ // Only set cookies if it was a self-change
 209+ $user->setCookies();
207210 }
208211
209 - $user->setCookies();
210212 $user->saveSettings();
211213 }
212214 }

Status & tagging log