From: Alexandre Emsenhuber Date: Sun, 6 Nov 2011 20:39:20 +0000 (+0000) Subject: Use WikiPage instead of Article to call updateCategoryCounts() X-Git-Tag: 1.31.0-rc.0~26676 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=7790359031db382577aa507bcdcb10c29b22a6ea;p=lhc%2Fweb%2Fwiklou.git Use WikiPage instead of Article to call updateCategoryCounts() --- diff --git a/includes/LinksUpdate.php b/includes/LinksUpdate.php index de6a0c08c8..0002096ad4 100644 --- a/includes/LinksUpdate.php +++ b/includes/LinksUpdate.php @@ -310,7 +310,7 @@ class LinksUpdate { * @param $deleted array associative array of category name => sort key */ function updateCategoryCounts( $added, $deleted ) { - $a = new Article($this->mTitle); + $a = WikiPage::factory( $this->mTitle ); $a->updateCategoryCounts( array_keys( $added ), array_keys( $deleted ) );