r91241 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91240‎ | r91241 | r91242 >
Date:01:30, 1 July 2011
Author:reedy
Status:ok
Tags:
Comment:
Followup r91168, fix last usage of $currentUser which was undefined
Modified paths:
  • /trunk/phase3/includes/User.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/User.php
@@ -2582,13 +2582,14 @@
25832583 $this->setNewtalk( false );
25842584 return;
25852585 }
2586 - if( $currentUser != 0 ) {
 2586+ $id = $this->getId();
 2587+ if( $id != 0 ) {
25872588 $dbw = wfGetDB( DB_MASTER );
25882589 $dbw->update( 'watchlist',
25892590 array( /* SET */
25902591 'wl_notificationtimestamp' => null
25912592 ), array( /* WHERE */
2592 - 'wl_user' => $this->getId()
 2593+ 'wl_user' => $id
25932594 ), __METHOD__
25942595 );
25952596 # We also need to clear here the "you have new message" notification for the own user_talk page

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91168And I forgot to commit this file in r91074ialex13:56, 30 June 2011

Status & tagging log