Invert the condition in AssetConverter

This commit is contained in:
Smotrov Dmitriy
2013-07-08 02:58:46 +04:00
parent e1decbc910
commit 1ad1bb96e6

View File

@@ -39,7 +39,7 @@ class AssetConverter extends Component implements IAssetConverter
public function convert($asset, $basePath) public function convert($asset, $basePath)
{ {
$pos = strrpos($asset, '.'); $pos = strrpos($asset, '.');
if ($pos === false) { if ($pos !== false) {
$ext = substr($asset, $pos + 1); $ext = substr($asset, $pos + 1);
if (isset($this->commands[$ext])) { if (isset($this->commands[$ext])) {
list ($ext, $command) = $this->commands[$ext]; list ($ext, $command) = $this->commands[$ext];