From 7790359031db382577aa507bcdcb10c29b22a6ea Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 6 Nov 2011 20:39:20 +0000 Subject: [PATCH] Use WikiPage instead of Article to call updateCategoryCounts() --- includes/LinksUpdate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ); -- 2.20.1