r81392 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81391‎ | r81392 | r81393 >
Date:14:54, 2 February 2011
Author:ialex
Status:ok
Tags:
Comment:
* (bug 27102) Backport part of r78786: don't require the "File:" on input field on Special:FileDuplicateSearch
Modified paths:
  • /branches/REL1_17/phase3/includes/specials/SpecialFileDuplicateSearch.php (modified) (history)

Diff [purge]

Index: branches/REL1_17/phase3/includes/specials/SpecialFileDuplicateSearch.php
@@ -85,7 +85,7 @@
8686 $hash = '';
8787 $filename = isset( $par ) ? $par : $wgRequest->getText( 'filename' );
8888
89 - $title = Title::newFromText( $filename );
 89+ $title = Title::makeTitleSafe( NS_FILE, $filename );
9090 if( $title && $title->getText() != '' ) {
9191 $dbr = wfGetDB( DB_SLAVE );
9292 $image = $dbr->tableName( 'image' );

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r78786Merge querypage-work2 branch from trunk. The most relevant changes are:...catrope14:16, 22 December 2010

Status & tagging log