Index: trunk/extensions/Icon/Icon.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | // check if we are dealing with an InterWiki link |
44 | 44 | if ( $ititle->isLocal() ) { |
45 | 45 | $image = wfFindFile( $img ); |
46 | | - if (!$image->exists()) |
| 46 | + if (!$image) |
47 | 47 | return '[[Image:'.$img.']]'; |
48 | 48 | |
49 | 49 | $iURL = $image->getURL(); |