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