mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 20:09:44 +00:00
XW-2307 | fixed whitespaces, using getMediaType method
This commit is contained in:
parent
33210522f2
commit
8d055fb35c
|
@ -58,7 +58,7 @@ class PortableInfoboxRenderServiceHelper {
|
|||
$title = $data[ 'name' ];
|
||||
$file = \WikiaFileHelper::getFileFromTitle( $title );
|
||||
|
||||
if ( !$file || !$file->exists() || !in_array($file->media_type, array(MEDIATYPE_BITMAP, MEDIATYPE_DRAWING))) {
|
||||
if ( !$file || !$file->exists() || !in_array( $file->getMediaType(), [ MEDIATYPE_BITMAP, MEDIATYPE_DRAWING ] ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue