* (bug 2585) HTTP 404 return code is now given for a page view if the page
authorBrion Vibber <brion@users.mediawiki.org>
Mon, 22 Dec 2008 23:38:58 +0000 (23:38 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Mon, 22 Dec 2008 23:38:58 +0000 (23:38 +0000)
commit0235ed688a3bd8caad6b55d4bd6842c6fc4bd802
treecad59c1f0ea2a1cf66d79cc547c1ea2b30946151
parent828205ec51742df404da28e0030e50ae8f930316
* (bug 2585) HTTP 404 return code is now given for a page view if the page
  does not exist, allowing spiders and link checkers to detect broken links.

This is less expansive than the old 2005 implementation (r11307), hitting
only page views (won't affect action=edit) and doesn't attempt to cover
error conditions either (many of which should probably return a different code).

Pages which exist in the DB or return true for Title::isAlwaysKnown() such
as file pages for existing files, as well as category pages that exist, are
treated as existing by returning true for Article::hasViewableContent().
RELEASE-NOTES
includes/Article.php
includes/CategoryPage.php