mirror of
https://github.com/flarum/framework.git
synced 2025-03-02 22:25:42 +08:00
Ensure a new asset revision identifier is generated if there is none
This commit is contained in:
parent
cc8494f8af
commit
5091dd038f
@ -75,7 +75,7 @@ class RevisionCompiler implements CompilerInterface
|
||||
$ext = pathinfo($this->filename, PATHINFO_EXTENSION);
|
||||
$file = $this->path.'/'.substr_replace($this->filename, '-'.$old, -strlen($ext) - 1, 0);
|
||||
|
||||
if ($this->watch) {
|
||||
if ($this->watch || ! $old) {
|
||||
$cacheDifferentiator = [$this->getCacheDifferentiator()];
|
||||
|
||||
foreach ($this->files as $source) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user