From 0fc96a51404c8e66db95208f20308d33c7265912 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 8 Jan 2007 22:39:29 +0000 Subject: [PATCH] Pre-fill the link cache with talk page of the user performing the action, and the page the action was performed on itself --- includes/SpecialLog.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/SpecialLog.php b/includes/SpecialLog.php index 7076d81978..ff477112c1 100644 --- a/includes/SpecialLog.php +++ b/includes/SpecialLog.php @@ -252,8 +252,11 @@ class LogViewer { $batch = new LinkBatch; while ( $s = $result->fetchObject() ) { // User link - $title = Title::makeTitleSafe( NS_USER, $s->user_name ); - $batch->addObj( $title ); + $batch->addObj( Title::makeTitleSafe( NS_USER, $s->user_name ) ); + $batch->addObj( Title::makeTitleSafe( NS_USER_TALK, $s->user_name ) ); + + // Page the action was performed on + $batch->addObj( Title::makeTitleSafe( $s->log_namespace, $s->log_title ) ); // Move destination link if ( $s->log_type == 'move' ) { -- 2.20.1