check that $wgArticle is an instance of the Article class in Skin::pageStats() per...
authorJack Phoenix <ashley@users.mediawiki.org>
Wed, 31 Dec 2008 19:30:59 +0000 (19:30 +0000)
committerJack Phoenix <ashley@users.mediawiki.org>
Wed, 31 Dec 2008 19:30:59 +0000 (19:30 +0000)
includes/Skin.php

index 9435c36..e5b39e2 100644 (file)
@@ -1261,6 +1261,7 @@ END;
                $oldid = $wgRequest->getVal( 'oldid' );
                $diff = $wgRequest->getVal( 'diff' );
                if ( ! $wgOut->isArticle() ) { return ''; }
+               if( !$wgArticle instanceOf Article ) { return ''; }
                if ( isset( $oldid ) || isset( $diff ) ) { return ''; }
                if ( 0 == $wgArticle->getID() ) { return ''; }