r90259 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90258‎ | r90259 | r90260 >
Date:04:47, 17 June 2011
Author:demon
Status:ok
Tags:
Comment:
Remove useless check for wfFindFile()
Modified paths:
  • /trunk/extensions/ImageMap/ImageMap_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ImageMap/ImageMap_body.php
@@ -93,12 +93,7 @@
9494 $thumbWidth = $imageNode->getAttribute('width');
9595 $thumbHeight = $imageNode->getAttribute('height');
9696
97 - if( function_exists( 'wfFindFile' ) ) {
98 - $imageObj = wfFindFile( $imageTitle );
99 - } else {
100 - // Old MW
101 - $imageObj = wfFindFile( $imageTitle );
102 - }
 97+ $imageObj = wfFindFile( $imageTitle );
10398 if ( !$imageObj || !$imageObj->exists() ) {
10499 return self::error( 'imagemap_invalid_image' );
105100 }

Status & tagging log