Pre-fill the link cache with talk page of the user performing the action, and the...
authorRob Church <robchurch@users.mediawiki.org>
Mon, 8 Jan 2007 22:39:29 +0000 (22:39 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 8 Jan 2007 22:39:29 +0000 (22:39 +0000)
includes/SpecialLog.php

index 7076d81..ff47711 100644 (file)
@@ -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' ) {