From: Chad Horohoe Date: Wed, 4 May 2011 01:43:03 +0000 (+0000) Subject: Add hack to shut up fatals when getCategories() is called without an actual OutputPage X-Git-Tag: 1.31.0-rc.0~30422 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=5c5322b1bb7647594f5767fc7c2968efc13ce265;p=lhc%2Fweb%2Fwiklou.git Add hack to shut up fatals when getCategories() is called without an actual OutputPage --- diff --git a/includes/Skin.php b/includes/Skin.php index 9490310e59..747401b0e0 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -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 );