X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FLinksUpdate.php;h=0002096ad4416dd52845b0b2283301bbc0ef14be;hb=a469cf2c95e72e657d579324f28300dba502e451;hp=de6a0c08c82837d06997e8d860172949411420a4;hpb=e330563a9f67bdae6b80e76d59625c3f7a8a6203;p=lhc%2Fweb%2Fwiklou.git 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 ) );