Browse Source

Fixed missing error suppression operator at `yii\web\AssetConverter::convert()`

tags/2.0.6
Klimov Paul 9 years ago
parent
commit
b57b994a75
  1. 2
      framework/web/AssetConverter.php

2
framework/web/AssetConverter.php

@ -65,7 +65,7 @@ class AssetConverter extends Component implements AssetConverterInterface
if (isset($this->commands[$ext])) {
list ($ext, $command) = $this->commands[$ext];
$result = substr($asset, 0, $pos + 1) . $ext;
if ($this->forceConvert || @filemtime("$basePath/$result") < filemtime("$basePath/$asset")) {
if ($this->forceConvert || @filemtime("$basePath/$result") < @filemtime("$basePath/$asset")) {
$this->runCommand($command, $basePath, $asset, $result);
}

Loading…
Cancel
Save