r64592 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r64591‎ | r64592 | r64593 >
Date:08:55, 4 April 2010
Author:ialex
Status:ok
Tags:
Comment:
* (bug 22496) Viewing diff of a redirect page without specifying "oldid" parameter no longer makes the page displayed as being the redirect target
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Wiki.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Wiki.php
@@ -319,6 +319,7 @@
320320 $file = ($title->getNamespace() == NS_FILE) ? $article->getFile() : null;
321321 if( ( $action == 'view' || $action == 'render' ) // ... for actions that show content
322322 && !$request->getVal( 'oldid' ) && // ... and are not old revisions
 323+ !$request->getVal( 'diff' ) && // ... and not when showing diff
323324 $request->getVal( 'redirect' ) != 'no' && // ... unless explicitly told not to
324325 // ... and the article is not a non-redirect image page with associated file
325326 !( is_object( $file ) && $file->exists() && !$file->getRedirected() ) )
Index: trunk/phase3/RELEASE-NOTES
@@ -79,6 +79,8 @@
8080 language
8181 * (bug 22852) "Served in" comment is now the time used to cache a single page
8282 when using rebuildFileCache.php
 83+* (bug 22496) Viewing diff of a redirect page without specifying "oldid"
 84+ parameter no longer makes the page displayed as being the redirect target
8385
8486 === API changes in 1.17 ===
8587 * (bug 22738) Allow filtering by action type on query=logevent

Status & tagging log