Non existent user subpages should return 404

Bug: 46491
Change-Id: I900f1542b077b569ed64306ecf9f965ddabe59f8
This commit is contained in:
Marius Hoch 2013-05-19 19:27:53 +02:00
parent 331bcf6ac9
commit bbe0dfb865

View file

@ -1092,6 +1092,7 @@ class Article implements Page {
public function showMissingArticle() {
global $wgSend404Code;
$outputPage = $this->getContext()->getOutput();
// Whether the page is a root user page of an existing user (but not a subpage)
$validUserPage = false;
# Show info in user (talk) namespace. Does the user exist? Is he blocked?
@ -1119,9 +1120,9 @@ class Article implements Page {
)
)
);
$validUserPage = true;
$validUserPage = !$this->getTitle()->isSubpage();
} else {
$validUserPage = true;
$validUserPage = !$this->getTitle()->isSubpage();
}
}