aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMarcel Müller <marcel-mueller@gmx.de>2024-07-11 08:28:33 +0200
committerGitHub <noreply@github.com>2024-07-11 08:28:33 +0200
commit0986d295b159f0d00617b18beba05a6515992397 (patch)
treebb99fc3ab52dfe35ac77dbe07f4d583d06f054b2 /apps
parent12d9c1ce965c5f6f712ee25e2ce552b570ae6c71 (diff)
parent276adecf1043b1fd22b67038e50cc85630f61101 (diff)
downloadnextcloud-server-0986d295b159f0d00617b18beba05a6515992397.tar.gz
nextcloud-server-0986d295b159f0d00617b18beba05a6515992397.zip
Merge pull request #46434 from nextcloud/backport/46428/stable29
[stable29] fix(theming): Don't reset the cachebuster value when we reset theming
Diffstat (limited to 'apps')
-rw-r--r--apps/theming/lib/ThemingDefaults.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php
index 210029ae636..29a4da1959d 100644
--- a/apps/theming/lib/ThemingDefaults.php
+++ b/apps/theming/lib/ThemingDefaults.php
@@ -460,7 +460,11 @@ class ThemingDefaults extends \OC_Defaults {
* Revert all settings to the default value
*/
public function undoAll(): void {
+ // Remember the current cachebuster value, as we do not want to reset this value
+ // Otherwise this can lead to caching issues as the value might be known to a browser already
+ $cacheBusterKey = $this->config->getAppValue('theming', 'cachebuster', '0');
$this->config->deleteAppValues('theming');
+ $this->config->setAppValue('theming', 'cachebuster', $cacheBusterKey);
$this->increaseCacheBuster();
}