mirror of
https://github.com/mwalbeck/nextcloud-breeze-dark.git
synced 2025-07-15 14:53:05 +00:00
Also migrate enforced theme settings
(cherry picked from commit 4c85966ff0
)
This commit is contained in:
parent
9810a95c49
commit
3d4e92bc8a
1 changed files with 6 additions and 0 deletions
|
@ -83,6 +83,12 @@ class MigrateUserThemeSettings implements IRepairStep
|
|||
$this->config->setUserValue($user["userid"], "theming", "enabled-themes", json_encode(array_values(array_unique($enabledThemes))));
|
||||
}
|
||||
|
||||
$currentEnforcedTheme = $this->config->getSystemValue("enforce_theme", "");
|
||||
|
||||
if ($currentEnforcedTheme === "breezedark") {
|
||||
$this->config->setSystemValue("enforce_theme", "dark");
|
||||
}
|
||||
|
||||
$this->config->setAppValue("breezedark", "theme_settings_version", "3");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue