mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ImageMap
synced 2024-11-24 06:13:39 +00:00
Don't use NS_IMAGE
Change-Id: Ie47300631ce074597ef2ce5cc370fb407f9f440f
This commit is contained in:
parent
aef77622ee
commit
95ab6978be
|
@ -79,7 +79,7 @@ class ImageMap {
|
|||
list( $image, $options ) = $bits;
|
||||
}
|
||||
$imageTitle = Title::newFromText( $image );
|
||||
if ( !$imageTitle || $imageTitle->getNamespace() != NS_IMAGE ) {
|
||||
if ( !$imageTitle || !$imageTitle->inNamespace( NS_FILE ) ) {
|
||||
return self::error( 'imagemap_no_image' );
|
||||
}
|
||||
if ( wfIsBadImage( $imageTitle->getDBkey(), $parser->mTitle ) ) {
|
||||
|
|
Loading…
Reference in a new issue