Browse Source

#3807: Wrong js/css path composition at `AssetController::buildTarget()` fixed

tags/2.0.0-rc
Klimov Paul 10 years ago
parent
commit
49f5d364a5
  1. 5
      framework/console/controllers/AssetController.php

5
framework/console/controllers/AssetController.php

@ -302,9 +302,10 @@ class AssetController extends Controller
$this->compressCssFiles($inputFiles, $tempFile);
}
$outputFile = $target->basePath . '/' . strtr($target->$type, ['{hash}' => md5_file($tempFile)]);
$targetFile = strtr($target->$type, ['{hash}' => md5_file($tempFile)]);
$outputFile = $target->basePath . '/' . $targetFile;
rename($tempFile, $outputFile);
$target->$type = [$outputFile];
$target->$type = [$targetFile];
}
/**

Loading…
Cancel
Save