r44290 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44289‎ | r44290 | r44291 >
Date:21:50, 7 December 2008
Author:aaron
Status:ok
Tags:
Comment:
Use makeTitleSafe()
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -535,7 +535,7 @@
536536 if( !empty($parser->mOutput->mImages) ) {
537537 foreach( $parser->mOutput->mImages as $filename => $x ) {
538538 # FIXME: it would be nice not to double fetch these!
539 - $file = wfFindFile( Title::makeTitle( NS_IMAGE, $filename ) );
 539+ $file = wfFindFile( Title::makeTitleSafe( NS_IMAGE, $filename ) );
540540 $parser->mOutput->fr_ImageSHA1Keys[$filename] = array();
541541 if( $file ) {
542542 # Bug 15748, be lax about commons image sync status

Status & tagging log