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
path: root/core
diff options
context:
space:
mode:
authordizzy <diosmosis@users.noreply.github.com>2022-03-08 11:33:16 +0300
committerGitHub <noreply@github.com>2022-03-08 11:33:16 +0300
commit4c04cd1ed3deb8228fcc9ff503ce013506f8d807 (patch)
tree029e3c0134dd2e47751f34d30c340ddfd00ae93b /core
parenta3bfb7bf5a06d173b9d733587d164890282dfed1 (diff)
the cachebuster set in render() does not appear to be used for JS files, which is different in development mode (#18895)
Diffstat (limited to 'core')
-rw-r--r--core/View.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/View.php b/core/View.php
index 7532a3337e..99c94b8906 100644
--- a/core/View.php
+++ b/core/View.php
@@ -357,7 +357,7 @@ class View implements ViewInterface
$cache->save('cssCacheBusterId', $cssCacheBusterId);
}
- $tagJs = 'cb=' . $cacheBuster->piwikVersionBasedCacheBuster();
+ $tagJs = 'cb=' . ($this->cacheBuster ?? $cacheBuster->piwikVersionBasedCacheBuster());
$tagCss = 'cb=' . $cssCacheBusterId;
$pattern = array(