From 99c47271be3b5cfa6a6094769ea63e8caae875e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Wed, 30 Sep 2020 09:26:32 +0200 Subject: [PATCH] Fix for a bug that would delete the new revision of less/js in case the filenames match. --- framework/core/src/Frontend/Compiler/RevisionCompiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Frontend/Compiler/RevisionCompiler.php b/framework/core/src/Frontend/Compiler/RevisionCompiler.php index 92f758196..88676e18b 100644 --- a/framework/core/src/Frontend/Compiler/RevisionCompiler.php +++ b/framework/core/src/Frontend/Compiler/RevisionCompiler.php @@ -86,7 +86,7 @@ class RevisionCompiler implements CompilerInterface $this->putRevision($newRevision); - if ($oldFile) { + if ($oldFile && $oldFile !== $newFile) { $this->delete($oldFile); } }