forked from science-ation/science-ation
Migrate config options theme
and theme_icons
from Global(FAIRYEAR) to Special(no fair year associated)
This commit is contained in:
parent
7cb1f55a3e
commit
4f65058f59
@ -18,6 +18,13 @@ function db_update_188_post()
|
||||
echo " Setting science fair conference for {$config['FAIRYEAR']} to running\n";
|
||||
mysql_query("UPDATE conferences SET status='running' WHERE year='{$config['FAIRYEAR']}'");
|
||||
|
||||
//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'");
|
||||
mysql_query("UPDATE config SET year=0, category='Special' WHERE year='{$config['FAIRYEAR']}' 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'");
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user