Mark as FIXME. This three calls leak a png filename in sys_get_temp_dir() each,
[lhc/web/wiklou.git] / includes / LinksUpdate.php
index de6a0c0..0002096 100644 (file)
@@ -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 )
                );