r23445 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r23444‎ | r23445 | r23446 >
Date:01:01, 27 June 2007
Author:simetrical
Status:old
Tags:
Comment:
(bug 10377) "Permanent links" to revisions still work if the page is moved and the redirect deleted
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -141,7 +141,10 @@
142142
143143 wfProfileIn( __METHOD__ );
144144
145 - if ( 0 == $this->getID() ) {
 145+ // We want to show the content even if the page doesn't exist, as long
 146+ // as the revision does (perhaps it's been moved and the redirect
 147+ // deleted: bug 10377)
 148+ if ( 0 == $this->getID() and !$this->mOldId ) {
146149 wfProfileOut( __METHOD__ );
147150 $wgOut->setRobotpolicy( 'noindex,nofollow' );
148151
Index: trunk/phase3/RELEASE-NOTES
@@ -215,8 +215,9 @@
216216 * (bug 10372) namespaceDupes.php no longer ignores namespace aliases
217217 * (bug 10198) namespaceDupes.php no longer ignores interwiki prefixes
218218 * namespaceDupes.php should work better for initial-lowercase wikis
 219+* (bug 10377) "Permanent links" to revisions still work if the page is moved
 220+ and the redirect deleted
219221
220 -
221222 == API changes since 1.10 ==
222223
223224 (For ongoing development discussion, see http://www.mediawiki.org/wiki/API)

Follow-up revisions

RevisionCommit summaryAuthorDate
r23483* (bug 7071) Properly handle an 'oldid' passed to view or edit that doesn't...brion15:30, 27 June 2007
r23581Merged revisions 23406-23580 via svnmerge from...david04:50, 30 June 2007

Status & tagging log