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;
|
return $node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isEmpty( $data ) {
|
||||||
|
return !( isset( $data[ 'url' ] ) ) || empty( $data[ 'url' ] );
|
||||||
|
}
|
||||||
|
|
||||||
public function resolveImageUrl( $filename ) {
|
public function resolveImageUrl( $filename ) {
|
||||||
global $wgContLang;
|
global $wgContLang;
|
||||||
$title = \Title::newFromText( \Wikia\PortableInfobox\Helpers\ImageFilenameSanitizer::getInstance()
|
$title = \Title::newFromText( \Wikia\PortableInfobox\Helpers\ImageFilenameSanitizer::getInstance()
|
||||||
|
|
Loading…
Reference in a new issue