From: Happy-melon Date: Sat, 16 Apr 2011 20:22:18 +0000 (+0000) Subject: Fix fatal in Standard skin. X-Git-Tag: 1.31.0-rc.0~30766 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=626e9fd81193694b96de7dd2c5101a4fd4f4eda9;p=lhc%2Fweb%2Fwiklou.git Fix fatal in Standard skin. --- 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 ''; }