From: Alex Monk Date: Fri, 17 Jul 2015 23:25:24 +0000 (-0500) Subject: Check for any content of MediaWiki namespace titles before passing it through Content... X-Git-Tag: 1.31.0-rc.0~10730^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%2C%22id_auteur=%24connecte%22%29%20.%20%22?a=commitdiff_plain;h=96bd35e9640da9a549707403578c474415d40f58;p=lhc%2Fweb%2Fwiklou.git Check for any content of MediaWiki namespace titles before passing it through ContentHandler Follows up I302d7915 Change-Id: I484bc45681d2a916aaa1e174e9235515aea62930 --- diff --git a/includes/page/Article.php b/includes/page/Article.php index f213f6a2cf..e58ffc8514 100644 --- a/includes/page/Article.php +++ b/includes/page/Article.php @@ -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 ) {