diff --git a/services/Parser/Nodes/NodeImage.php b/services/Parser/Nodes/NodeImage.php index dff48e6..2beec90 100644 --- a/services/Parser/Nodes/NodeImage.php +++ b/services/Parser/Nodes/NodeImage.php @@ -15,6 +15,10 @@ class NodeImage extends Node { return $node; } + public function isEmpty( $data ) { + return !( isset( $data[ 'url' ] ) ) || empty( $data[ 'url' ] ); + } + public function resolveImageUrl( $filename ) { global $wgContLang; $title = \Title::newFromText( \Wikia\PortableInfobox\Helpers\ImageFilenameSanitizer::getInstance()