Delete old froxlor-theme and automatically move users to CSS - version of theme

Signed-off-by: Florian Aders (EleRas) <eleras@froxlor.org>
This commit is contained in:
Florian Aders (EleRas)
2014-01-01 13:11:27 +01:00
parent 93d60e4305
commit 2d1fd0c8c5
346 changed files with 19 additions and 7071 deletions

View File

@@ -525,7 +525,7 @@ INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES
('panel', 'phpconfigs_hidestdsubdomain', '0'),
('panel', 'allow_theme_change_admin', '1'),
('panel', 'allow_theme_change_customer', '1'),
('panel', 'version', '0.9.32-dev2');
('panel', 'version', '0.9.32-dev3');
DROP TABLE IF EXISTS `panel_tasks`;

View File

@@ -2651,3 +2651,20 @@ if (isFroxlorVersion('0.9.32-dev1')) {
updateToVersion('0.9.32-dev2');
}
if (isFroxlorVersion('0.9.32-dev2')) {
showUpdateStep("Updating from 0.9.32-dev2 to 0.9.32-dev3");
lastStepStatus(0);
showUpdateStep("Updating froxlor - theme");
Database::query("UPDATE `".TABLE_PANEL_ADMINS."` SET `theme` = 'Sparkle_froxlor' WHERE `theme` = 'Froxlor';");
Database::query("UPDATE `".TABLE_PANEL_CUSTOMERS."` SET `theme` = 'Sparkle_froxlor' WHERE `theme` = 'Froxlor';");
Database::query("UPDATE `".TABLE_PANEL_SESSIONS."` SET `theme` = 'Sparkle_froxlor' WHERE `theme` = 'Froxlor';");
if (Settings::Get('panel.default_theme') == 'Froxlor') {
Settings::Set('panel.default_theme', 'Sparkle_froxlor');
}
lastStepStatus(0);
updateToVersion('0.9.32-dev3');
}