From 1ad1bb96e6555af36943c7395d0c2524a0b1b197 Mon Sep 17 00:00:00 2001 From: Smotrov Dmitriy Date: Mon, 8 Jul 2013 02:58:46 +0400 Subject: [PATCH] Invert the condition in AssetConverter --- framework/yii/web/AssetConverter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/web/AssetConverter.php b/framework/yii/web/AssetConverter.php index cfad360..fa323c7 100644 --- a/framework/yii/web/AssetConverter.php +++ b/framework/yii/web/AssetConverter.php @@ -39,7 +39,7 @@ class AssetConverter extends Component implements IAssetConverter public function convert($asset, $basePath) { $pos = strrpos($asset, '.'); - if ($pos === false) { + if ($pos !== false) { $ext = substr($asset, $pos + 1); if (isset($this->commands[$ext])) { list ($ext, $command) = $this->commands[$ext];