(bug 10377) "Permanent links" to revisions still work if the page is moved and the...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 27 Jun 2007 01:01:22 +0000 (01:01 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Wed, 27 Jun 2007 01:01:22 +0000 (01:01 +0000)
RELEASE-NOTES
includes/Article.php

index f0aca9a..ef4f213 100644 (file)
@@ -215,7 +215,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 10372) namespaceDupes.php no longer ignores namespace aliases
 * (bug 10198) namespaceDupes.php no longer ignores interwiki prefixes
 * namespaceDupes.php should work better for initial-lowercase wikis
-
+* (bug 10377) "Permanent links" to revisions still work if the page is moved
+  and the redirect deleted
 
 == API changes since 1.10 ==
 
index 5c325c5..50fca0b 100644 (file)
@@ -141,7 +141,10 @@ class Article {
 
                wfProfileIn( __METHOD__ );
 
-               if ( 0 == $this->getID() ) {
+               // We want to show the content even if the page doesn't exist, as long
+               // as the revision does (perhaps it's been moved and the redirect
+               // deleted: bug 10377)
+               if ( 0 == $this->getID() and !$this->mOldId ) {
                        wfProfileOut( __METHOD__ );
                        $wgOut->setRobotpolicy( 'noindex,nofollow' );