From 37ddf59571a747611da8829a470707115b64e1b2 Mon Sep 17 00:00:00 2001 From: Daniel Friesen Date: Wed, 4 May 2011 01:53:05 +0000 Subject: [PATCH] Add proper $out setting to Skin::getCategories which is present in the other similar methods. Replaces r87380. --- includes/Skin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index 747401b0e0..eeb71cf030 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -607,9 +607,9 @@ abstract class Skin { * the ->getCategories( $out ) form with whatout OutputPage is on hand */ function getCategories( OutputPage $out=null ) { - if( !$out ) { - global $wgOut; - $out = $wgOut; + + if( $out === null ){ + $out = $this->getContext()->output; } $catlinks = $this->getCategoryLinks( $out ); -- 2.20.1