No more Image::newFromName/newFromTitle. wfFindFile() takes strings or titles.

This commit is contained in:
Chad Horohoe 2009-03-19 12:34:14 +00:00
parent 69080a046b
commit 34ec4be752

View file

@ -98,7 +98,7 @@ class ImageMap {
$imageObj = wfFindFile( $imageTitle );
} else {
// Old MW
$imageObj = Image::newFromTitle( $imageTitle );
$imageObj = wfFindFile( $imageTitle );
}
if ( !$imageObj || !$imageObj->exists() ) {
return self::error( 'imagemap_invalid_image' );