Index: trunk/extensions/CategoryWatch/CategoryWatch.php |
— | — | @@ -88,7 +88,7 @@ |
89 | 89 | $cl = $dbr->tableName( 'categorylinks' ); |
90 | 90 | $id = $article->getID(); |
91 | 91 | $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(); |
93 | 93 | $dbr->freeResult( $res ); |
94 | 94 | |
95 | 95 | # Get list of added and removed cats |
— | — | @@ -97,7 +97,7 @@ |
98 | 98 | |
99 | 99 | # Notify watchers of each cat about the addition or removal of this article |
100 | 100 | if ( count( $add ) > 0 || count( $sub ) > 0 ) { |
101 | | - $page = $article->getTitle()->getText(); |
| 101 | + $page = $article->getTitle()->getPrefixedText(); |
102 | 102 | if ( count( $add ) == 1 && count( $sub ) == 1 ) { |
103 | 103 | $add = array_shift( $add ); |
104 | 104 | $sub = array_shift( $sub ); |