Add hack to shut up fatals when getCategories() is called without an actual OutputPage
authorChad Horohoe <demon@users.mediawiki.org>
Wed, 4 May 2011 01:43:03 +0000 (01:43 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Wed, 4 May 2011 01:43:03 +0000 (01:43 +0000)
includes/Skin.php

index 9490310..747401b 100644 (file)
@@ -607,6 +607,10 @@ abstract class Skin {
         * the ->getCategories( $out ) form with whatout OutputPage is on hand
         */
        function getCategories( OutputPage $out=null ) {
+               if( !$out ) {
+                       global $wgOut;
+                       $out = $wgOut;
+               }
 
                $catlinks = $this->getCategoryLinks( $out );