r49753 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49752‎ | r49753 | r49754 >
Date:04:15, 23 April 2009
Author:nad
Status:deferred
Tags:
Comment:
Use prefixed titles in emailed message
Modified paths:
  • /trunk/extensions/CategoryWatch/CategoryWatch.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CategoryWatch/CategoryWatch.php
@@ -88,7 +88,7 @@
8989 $cl = $dbr->tableName( 'categorylinks' );
9090 $id = $article->getID();
9191 $res = $dbr->select( $cl, 'cl_to', "cl_from = $id", __METHOD__, array( 'ORDER BY' => 'cl_sortkey' ) );
92 - while ( $row = $dbr->fetchRow( $res ) ) $this->after[] = $row[0];
 92+ while ( $row = $dbr->fetchRow( $res ) ) $this->after[] = Title::newFromText( $row[0], NS_CATEGORY )->getPrefixedText();
9393 $dbr->freeResult( $res );
9494
9595 # Get list of added and removed cats
@@ -97,7 +97,7 @@
9898
9999 # Notify watchers of each cat about the addition or removal of this article
100100 if ( count( $add ) > 0 || count( $sub ) > 0 ) {
101 - $page = $article->getTitle()->getText();
 101+ $page = $article->getTitle()->getPrefixedText();
102102 if ( count( $add ) == 1 && count( $sub ) == 1 ) {
103103 $add = array_shift( $add );
104104 $sub = array_shift( $sub );

Status & tagging log