temporarily set the fairyear in install3 so user_create works?

This commit is contained in:
james 2010-07-05 20:36:40 +00:00
parent 548ebf24db
commit 75c806bf7e
2 changed files with 6 additions and 2 deletions

View File

@ -85,7 +85,7 @@ function config_update_variables($conference_id=NULL, $last_conference_id=NULL)
if($conference_id == NULL && $last_conference_id==NULL) {
//FIXME: what the heck do we do?
}
else {
else if($conference_id) {
// if($lastfairyear == NULL) $lastfairyear = $fairyear - 1;
/* The master list of variables is the year=-1, grab
@ -126,6 +126,9 @@ function config_update_variables($conference_id=NULL, $last_conference_id=NULL)
'".mysql_escape_string($v->conferencetypes)."')");
}
}
else {
//umm?
}
}
$config_editor_actions_done = false;

View File

@ -104,9 +104,10 @@ if($_POST['action']=="save") {
mysql_query("INSERT INTO config (var,val,category,ord,year) VALUES ('SFIABDIRECTORY','".$_POST['sfiabdirectory']."','Special','','0')");
$year = intval($_POST['fairyear']);
$config['FAIRYEAR']=$year;
//copy over the config defautls
config_update_variables($year);
// config_update_variables($year);
// Update some variables
mysql_query("UPDATE config SET