mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 11:59:56 +00:00
add context to proper field
This commit is contained in:
parent
97623fe9a5
commit
00360174b5
|
@ -152,8 +152,10 @@ class PortableInfoboxRenderService extends WikiaService {
|
|||
$helper = new PortableInfoboxRenderServiceHelper();
|
||||
|
||||
if ( $type === 'image' ) {
|
||||
$data[ 'image' ][ 'context' ] = self::MEDIA_CONTEXT_INFOBOX;
|
||||
|
||||
$data[ 'context' ] = self::MEDIA_CONTEXT_INFOBOX;
|
||||
$data = $helper->extendImageData( $data );
|
||||
|
||||
if ( !$data ) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue