mirror of
https://github.com/flarum/core.git
synced 2025-07-17 14:51:19 +02:00
Fix for a bug that would delete the new revision of less/js in case the filenames match.
This commit is contained in:
@@ -86,7 +86,7 @@ class RevisionCompiler implements CompilerInterface
|
||||
|
||||
$this->putRevision($newRevision);
|
||||
|
||||
if ($oldFile) {
|
||||
if ($oldFile && $oldFile !== $newFile) {
|
||||
$this->delete($oldFile);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user