mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-15 11:59:56 +00:00
whitespaces2
This commit is contained in:
parent
c3073c0b17
commit
9d1c6031cd
|
@ -171,17 +171,17 @@ class PortableInfoboxRenderService extends WikiaService {
|
|||
$url = $data['url'];
|
||||
// TODO: remove 'if' condition when unified thumb method
|
||||
// will be implemented: https://wikiainc.atlassian.net/browse/PLATFORM1237
|
||||
if ( VignetteRequest::isVignetteUrl( $url )) {
|
||||
return VignetteRequest::fromUrl($url)
|
||||
if ( VignetteRequest::isVignetteUrl( $url ) ) {
|
||||
return VignetteRequest::fromUrl( $url )
|
||||
->thumbnailDown()
|
||||
->width(F::app()->checkSkin('wikiamobile') ?
|
||||
->width(F::app()->checkSkin( 'wikiamobile' ) ?
|
||||
self::MOBILE_THUMBNAIL_WIDTH :
|
||||
self::DESKTOP_THUMBNAIL_WIDTH
|
||||
)
|
||||
->height(self::THUMBNAIL_HEIGHT)
|
||||
->height( self::THUMBNAIL_HEIGHT )
|
||||
->url();
|
||||
} else {
|
||||
$url = $this->createOldThumbnail($data['name']);
|
||||
$url = $this->createOldThumbnail( $data['name'] );
|
||||
}
|
||||
return $url;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue