mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageMap
synced 2024-11-15 10:25:09 +00:00
No more Image::newFromName/newFromTitle. wfFindFile() takes strings or titles.
This commit is contained in:
parent
69080a046b
commit
34ec4be752
|
@ -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' );
|
||||
|
|
Loading…
Reference in a new issue