From 5c5322b1bb7647594f5767fc7c2968efc13ce265 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Wed, 4 May 2011 01:43:03 +0000 Subject: [PATCH] Add hack to shut up fatals when getCategories() is called without an actual OutputPage --- includes/Skin.php | 4 ++++ 1 file changed, 4 insertions(+) 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 ); -- 2.20.1