r102193 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102192‎ | r102193 | r102194 >
Date:20:39, 6 November 2011
Author:ialex
Status:ok
Tags:
Comment:
Use WikiPage instead of Article to call updateCategoryCounts()
Modified paths:
  • /trunk/phase3/includes/LinksUpdate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LinksUpdate.php
@@ -310,7 +310,7 @@
311311 * @param $deleted array associative array of category name => sort key
312312 */
313313 function updateCategoryCounts( $added, $deleted ) {
314 - $a = new Article($this->mTitle);
 314+ $a = WikiPage::factory( $this->mTitle );
315315 $a->updateCategoryCounts(
316316 array_keys( $added ), array_keys( $deleted )
317317 );

Status & tagging log