From: Aaron Schulz Date: Sun, 10 Apr 2011 06:46:02 +0000 (+0000) Subject: Quick fix to categoriesHtml() given new skin changes X-Git-Tag: 1.31.0-rc.0~30955 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=50df1d47947d6caf78951d31047a70261a3e74bc;p=lhc%2Fweb%2Fwiklou.git Quick fix to categoriesHtml() given new skin changes --- diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 8b9d272eb2..91385ed3b8 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -373,8 +373,7 @@ class ApiParse extends ApiBase { private function categoriesHtml( $categories ) { global $wgOut, $wgUser; $wgOut->addCategoryLinks( $categories ); - $sk = $wgUser->getSkin(); - return $sk->getCategories(); + return $wgUser->getSkin()->getCategories( $wgOut ); } /**