From 50df1d47947d6caf78951d31047a70261a3e74bc Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 10 Apr 2011 06:46:02 +0000 Subject: [PATCH] Quick fix to categoriesHtml() given new skin changes --- includes/api/ApiParse.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ); } /** -- 2.20.1