Add proper $out setting to Skin::getCategories which is present in the other similar...
authorDaniel Friesen <dantman@users.mediawiki.org>
Wed, 4 May 2011 01:53:05 +0000 (01:53 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Wed, 4 May 2011 01:53:05 +0000 (01:53 +0000)
includes/Skin.php

index 747401b..eeb71cf 100644 (file)
@@ -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 );