r11560 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r11559‎ | r11560 | r11561 >
Date:03:01, 29 October 2005
Author:avar
Status:old
Tags:
Comment:
* Logic error: $row->namespace not NS_USER
Modified paths:
  • /trunk/phase3/includes/SpecialMostlinkedcategories.php (modified) (history)
  • /trunk/phase3/includes/SpecialWantedpages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialMostlinkedcategories.php
@@ -49,7 +49,7 @@
5050
5151 $batch = new LinkBatch;
5252 while ( $row = $db->fetchObject( $res ) )
53 - $batch->addObj( Title::makeTitleSafe( NS_USER, $row->title ) );
 53+ $batch->addObj( Title::makeTitleSafe( $row->namespace, $row->title ) );
5454 $batch->execute( $wgLinkCache );
5555
5656 // Back to start for display
Index: trunk/phase3/includes/SpecialWantedpages.php
@@ -57,7 +57,7 @@
5858
5959 $batch = new LinkBatch;
6060 while ( $row = $db->fetchObject( $res ) )
61 - $batch->addObj( Title::makeTitleSafe( NS_USER, $row->title ) );
 61+ $batch->addObj( Title::makeTitleSafe( $row->namespace, $row->title ) );
6262 $batch->execute( $wgLinkCache );
6363
6464 // Back to start for display

Status & tagging log