mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 23:34:22 -04:00
Merge pull request #46433 from nextcloud/backport/46428/stable28
[stable28] fix(theming): Don't reset the cachebuster value when we reset theming
This commit is contained in:
commit
3f06411700
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue