dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8f0cf8
)
Check for any content of MediaWiki namespace titles before passing it through Content...
author
Alex Monk
<krenair@gmail.com>
Fri, 17 Jul 2015 23:25:24 +0000
(18:25 -0500)
committer
Alex 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
patch
|
blob
|
history
diff --git
a/includes/page/Article.php
b/includes/page/Article.php
index
f213f6a
..
e58ffc8
100644
(file)
--- 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 ) {