From 00360174b5155ccd1bc3d13349465291bc567bb7 Mon Sep 17 00:00:00 2001 From: Diana Date: Wed, 7 Oct 2015 09:42:38 +0000 Subject: [PATCH] add context to proper field --- services/PortableInfoboxRenderService.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/PortableInfoboxRenderService.class.php b/services/PortableInfoboxRenderService.class.php index 9800d01..e0c7516 100644 --- a/services/PortableInfoboxRenderService.class.php +++ b/services/PortableInfoboxRenderService.class.php @@ -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; }