Commit f1742f58 by Qiang Xue

Merge pull request #607 from DsXack/master

Fix the condition in AssetConverter
parents 30ec0afd 1ad1bb96
...@@ -39,7 +39,7 @@ class AssetConverter extends Component implements IAssetConverter ...@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment