summaryrefslogtreecommitdiff
path: root/database/updates.inc
diff options
context:
space:
mode:
Diffstat (limited to 'database/updates.inc')
-rw-r--r--database/updates.inc31
1 files changed, 30 insertions, 1 deletions
diff --git a/database/updates.inc b/database/updates.inc
index f7922c4ae..61186b6a1 100644
--- a/database/updates.inc
+++ b/database/updates.inc
@@ -74,7 +74,8 @@ $sql_updates = array(
"2004-08-10" => "update_100",
"2004-08-11" => "update_101",
"2004-08-12" => "update_102",
- "2004-08-17" => "update_103"
+ "2004-08-17" => "update_103",
+ "2004-08-19" => "update_104"
);
function update_32() {
@@ -1522,6 +1523,34 @@ function update_103() {
return $ret;
}
+function update_104() {
+ $ret = array();
+ if (variable_get('theme_default', 'xtemplate') == 'chameleon') {
+ $ret[] = update_sql("DELETE FROM {system} WHERE name = 'chameleon'");
+ $ret[] = update_sql("INSERT INTO system VALUES ('themes/chameleon/chameleon.theme','chameleon','theme','',1,0,0)");
+ $ret[] = update_sql("INSERT INTO system VALUES ('themes/chameleon/marvin/style.css','marvin','theme','themes/chameleon/chameleon.theme',1,0,0)");
+ if (variable_get("chameleon_stylesheet", "themes/chameleon/pure/chameleon.css") == "themes/chameleon/marvin/chameleon.css") {
+ variable_set('theme_default', 'chameleon/marvin');
+ }
+ else {
+ variable_set('theme_default', 'chameleon');
+ }
+ }
+ elseif (variable_get('theme_default', 'xtemplate') == 'xtemplate') {
+ $ret[] = update_sql("DELETE FROM {system} WHERE name = 'xtemplate'");
+ $ret[] = update_sql("INSERT INTO system VALUES ('themes/bluemarine/bluemarine.theme','bluemarine','theme','themes/engines/xtemplate/xtemplate.engine',1,0,0)");
+ $ret[] = update_sql("INSERT INTO system VALUES ('themes/pushbutton/pushbutton.theme','pushbutton','theme','themes/engines/xtemplate/xtemplate.engine',1,0,0)");
+ $ret[] = update_sql("INSERT INTO system VALUES ('themes/engines/xtemplate/xtemplate.engine','xtemplate','theme_engine','',1,0,0)");
+ if (variable_get('xtemplate_template', 'default') == 'pushbutton') {
+ variable_set('theme_default', 'pushbutton');
+ }
+ else {
+ variable_set('theme_default', 'bluemarine');
+ }
+ }
+ return $ret;
+}
+
function update_sql($sql) {
$edit = $_POST["edit"];
$result = db_query($sql);