r35133 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35132‎ | r35133 | r35134 >
Date:05:23, 21 May 2008
Author:aaron
Status:old
Tags:
Comment:
$user->setNewtalk( false ) for deleted user talk pages (bug 14077)
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -3093,13 +3093,20 @@
30943094 @unlink( $cm->fileCacheName() );
30953095 }
30963096
3097 - if( $title->getNamespace() == NS_MEDIAWIKI) {
 3097+ # Messages
 3098+ if( $title->getNamespace() == NS_MEDIAWIKI ) {
30983099 $wgMessageCache->replace( $title->getDBkey(), false );
30993100 }
 3101+ # Images
31003102 if( $title->getNamespace() == NS_IMAGE ) {
31013103 $update = new HTMLCacheUpdate( $title, 'imagelinks' );
31023104 $update->doUpdate();
31033105 }
 3106+ # User talk pages
 3107+ if( $title->getNamespace() == NS_USER_TALK ) {
 3108+ $user = User::newFromName( $title->getText(), false );
 3109+ $user->setNewtalk( false );
 3110+ }
31043111 }
31053112
31063113 /**

Status & tagging log