Fix fatal in Standard skin.
authorHappy-melon <happy-melon@users.mediawiki.org>
Sat, 16 Apr 2011 20:22:18 +0000 (20:22 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Sat, 16 Apr 2011 20:22:18 +0000 (20:22 +0000)
includes/Skin.php

index 2114849..1bf2883 100644 (file)
@@ -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 '';
                }