mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 11:59:56 +00:00
overwrite isEmpty method for image node to check for url instead of value
This commit is contained in:
parent
f6a05dbfdf
commit
440b1e934b
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue