Skip to content

Commit

Permalink
Dev: Revert "Fixed issue #14328: Can't add SVG logo images to theme"
Browse files Browse the repository at this point in the history
This reverts commit 7cba71e.

Test to see if this fixes Travis.
  • Loading branch information
olleharstedt committed Dec 10, 2018
1 parent 07c157e commit c8f3b96
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions application/core/LS_Twig_Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,14 +272,10 @@ public static function image($sImagePath, $alt = '', $htmlOptions = array( ))
$sUrlImgAsset = self::assetPublish($oTemplate->path.$sImagePath);
}

// check if this is a true image
$checkImage = LSYii_ImageValidator::validateImage($sImagePath);
if (!$checkImage['check']) {
return;
if (@is_array(getimagesize(Yii::app()->getConfig('rootdir').'/'.$sImagePath))) {
$sUrlImgAsset = self::assetPublish(Yii::app()->getConfig('rootdir').'/'.$sImagePath);
}

$sUrlImgAsset = self::assetPublish(Yii::app()->getConfig('rootdir').'/'.$sImagePath);


return CHtml::image($sUrlImgAsset, $alt, $htmlOptions);
}
Expand Down

0 comments on commit c8f3b96

Please sign in to comment.