Browse Source

Merge pull request #607 from DsXack/master

Fix the condition in AssetConverter
tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
f1742f5830
  1. 2
      framework/yii/web/AssetConverter.php

2
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];

Loading…
Cancel
Save