add context to proper field

This commit is contained in:
Diana 2015-10-07 09:42:38 +00:00
parent 97623fe9a5
commit 00360174b5

View file

@ -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;
}