diff --git a/db/db.update.188.php b/db/db.update.188.php index ea70e32a..001a150c 100644 --- a/db/db.update.188.php +++ b/db/db.update.188.php @@ -20,8 +20,15 @@ function db_update_188_post() //now update a couple config options for now, until we cna do soemthing better, without theme and theme_icons //being fairyear independent, they wont get set at all so the page wont even load + mysql_query("UPDATE config SET year=0, category='Special' WHERE year='{$config['FAIRYEAR']}' AND var='theme'"); + if(!mysql_affected_rows()) { + mysql_query("UPDATE config SET year=0, category='Special' WHERE year='-1' AND var='theme'"); + } mysql_query("UPDATE config SET year=0, category='Special' WHERE year='{$config['FAIRYEAR']}' AND var='theme_icons'"); + if(!mysql_affected_rows()) { + mysql_query("UPDATE config SET year=0, category='Special' WHERE year='-1' AND var='theme_icons'"); + } mysql_query("DELETE FROM config WHERE year!=0 AND var='theme'"); mysql_query("DELETE FROM config WHERE year!=0 AND var='theme_icons'"); diff --git a/install2.php b/install2.php index 18228f8a..4e55f103 100644 --- a/install2.php +++ b/install2.php @@ -37,8 +37,7 @@ if(!function_exists("system")) { exit; } -if(!file_exists("data/config.inc.php")) -{ +if(!file_exists("data/config.inc.php")) { echo "