From 626e9fd81193694b96de7dd2c5101a4fd4f4eda9 Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Sat, 16 Apr 2011 20:22:18 +0000 Subject: [PATCH] Fix fatal in Standard skin. --- includes/Skin.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/Skin.php b/includes/Skin.php index 2114849ce7..1bf2883595 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -525,6 +525,10 @@ abstract class Skin { function getCategoryLinks( OutputPage $out=null ) { global $wgUseCategoryBrowser, $wgContLang; + if( $out === null ){ + $out = $this->getContext()->output; + } + if ( count( $out->mCategoryLinks ) == 0 ) { return ''; } -- 2.20.1