r18981 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r18980‎ | r18981 | r18982 >
Date:22:39, 8 January 2007
Author:robchurch
Status:old
Tags:
Comment:
Pre-fill the link cache with talk page of the user performing the action, and the page the action was performed on itself
Modified paths:
  • /trunk/phase3/includes/SpecialLog.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialLog.php
@@ -252,9 +252,12 @@
253253 $batch = new LinkBatch;
254254 while ( $s = $result->fetchObject() ) {
255255 // User link
256 - $title = Title::makeTitleSafe( NS_USER, $s->user_name );
257 - $batch->addObj( $title );
 256+ $batch->addObj( Title::makeTitleSafe( NS_USER, $s->user_name ) );
 257+ $batch->addObj( Title::makeTitleSafe( NS_USER_TALK, $s->user_name ) );
258258
 259+ // Page the action was performed on
 260+ $batch->addObj( Title::makeTitleSafe( $s->log_namespace, $s->log_title ) );
 261+
259262 // Move destination link
260263 if ( $s->log_type == 'move' ) {
261264 $paramArray = LogPage::extractParams( $s->log_params );