change order

This commit is contained in:
Diana 2015-09-28 16:42:27 +00:00
parent 2565999c3d
commit ff16c2346f

View file

@ -128,8 +128,8 @@ class PortableInfoboxRenderService extends WikiaService {
$helper = new PortableInfoboxRenderServiceHelper();
if ( array_key_exists( 'image', $data ) ) {
$data[ 'image' ] = $helper->extendImageData( $data[ 'image' ] );
$data[ 'image' ][ 'context' ] = self::MEDIA_CONTEXT_INFOBOX_HERO_IMAGE;
$data[ 'image' ] = $helper->extendImageData( $data[ 'image' ] );
$markup = $this->renderItem( 'hero-mobile', $data );
} else {
$markup = $this->renderItem( 'title', $data[ 'title' ] );