mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 05:45:33 +08:00
Invert the condition in AssetConverter
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user