Check for any content of MediaWiki namespace titles before passing it through Content...
authorAlex Monk <krenair@gmail.com>
Fri, 17 Jul 2015 23:25:24 +0000 (18:25 -0500)
committerAlex Monk <krenair@gmail.com>
Fri, 17 Jul 2015 23:38:32 +0000 (23:38 +0000)
Follows up I302d7915

Change-Id: I484bc45681d2a916aaa1e174e9235515aea62930

includes/page/Article.php

index f213f6a..e58ffc8 100644 (file)
@@ -1256,7 +1256,7 @@ class Article implements Page {
 
                # Show error message
                $oldid = $this->getOldID();
-               if ( !$oldid && $title->getNamespace() === NS_MEDIAWIKI ) {
+               if ( !$oldid && $title->getNamespace() === NS_MEDIAWIKI && $title->hasSourceText() ) {
                        $outputPage->addParserOutput( $this->getContentObject()->getParserOutput( $title ) );
                } else {
                        if ( $oldid ) {