mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 11:59:56 +00:00
change logic for getting name and key values to match with default mobile image rendering logic
This commit is contained in:
parent
9aeef8670e
commit
a5e7fb7ae0
|
@ -17,7 +17,8 @@ class NodeImage extends Node {
|
|||
|
||||
return [
|
||||
'url' => $this->resolveImageUrl( $title ),
|
||||
'name' => ( $title ) ? $title->getDBkey() : '',
|
||||
'name' => ( $title ) ?htmlspecialchars( $title->getText() ) : '',
|
||||
'key' => ( $title ) ? htmlspecialchars( urlencode( $title->getDBKey() ) ) : '',
|
||||
'alt' => $alt,
|
||||
'caption' => $caption,
|
||||
'ref' => $ref
|
||||
|
|
Loading…
Reference in a new issue