Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2021-01-08 07:17:54 +0300
committerGitHub <noreply@github.com>2021-01-08 07:17:54 +0300
commita9243467882ad8b42bb7c7e8cdc922a5e335b314 (patch)
tree87e87e272446d758bfa0f8d9cbf9a65baba62586 /plugins/CoreUpdater
parentd9a3cc0fc2b83acbdaad711ad360f5219efa7d25 (diff)
Ensure no longer used node module files are removed on update (#17059)
Diffstat (limited to 'plugins/CoreUpdater')
-rw-r--r--plugins/CoreUpdater/Model.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/CoreUpdater/Model.php b/plugins/CoreUpdater/Model.php
index f00981ab1b..ce4892083a 100644
--- a/plugins/CoreUpdater/Model.php
+++ b/plugins/CoreUpdater/Model.php
@@ -28,6 +28,7 @@ class Model
Filesystem::unlinkTargetFilesNotPresentInSource($source . '/core', $target . '/core');
Filesystem::unlinkTargetFilesNotPresentInSource($source . '/libs', $target . '/libs');
Filesystem::unlinkTargetFilesNotPresentInSource($source . '/vendor', $target . '/vendor');
+ Filesystem::unlinkTargetFilesNotPresentInSource($source . '/node_modules', $target . '/node_modules');
foreach ($this->getPluginsFromDirectoy($source) as $pluginDir) {
Filesystem::unlinkTargetFilesNotPresentInSource($source . $pluginDir, $target . $pluginDir);