r29985 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29984‎ | r29985 | r29986 >
Date:16:05, 20 January 2008
Author:vasilievvv
Status:old
Tags:
Comment:
* Don't follow redirects if image exists
Modified paths:
  • /trunk/phase3/includes/Wiki.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Wiki.php
@@ -249,7 +249,8 @@
250250
251251 // Namespace might change when using redirects
252252 if( ( $action == 'view' || $action == 'render' ) && !$request->getVal( 'oldid' ) &&
253 - $request->getVal( 'redirect' ) != 'no' ) {
 253+ $request->getVal( 'redirect' ) != 'no' &&
 254+ !( $wgTitle->getNamespace() == NS_IMAGE && wfFindFile( $wgTitle->getText() ) ) ) {
254255
255256 $dbr = wfGetDB(DB_SLAVE);
256257 $article->loadPageData($article->pageDataFromTitle($dbr, $title));

Status & tagging log