forked from science-ation/science-ation
temporarily set the fairyear in install3 so user_create works?
This commit is contained in:
parent
548ebf24db
commit
75c806bf7e
@ -85,7 +85,7 @@ function config_update_variables($conference_id=NULL, $last_conference_id=NULL)
|
|||||||
if($conference_id == NULL && $last_conference_id==NULL) {
|
if($conference_id == NULL && $last_conference_id==NULL) {
|
||||||
//FIXME: what the heck do we do?
|
//FIXME: what the heck do we do?
|
||||||
}
|
}
|
||||||
else {
|
else if($conference_id) {
|
||||||
// if($lastfairyear == NULL) $lastfairyear = $fairyear - 1;
|
// if($lastfairyear == NULL) $lastfairyear = $fairyear - 1;
|
||||||
|
|
||||||
/* The master list of variables is the year=-1, grab
|
/* 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)."')");
|
'".mysql_escape_string($v->conferencetypes)."')");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
//umm?
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$config_editor_actions_done = false;
|
$config_editor_actions_done = false;
|
||||||
|
@ -104,9 +104,10 @@ if($_POST['action']=="save") {
|
|||||||
mysql_query("INSERT INTO config (var,val,category,ord,year) VALUES ('SFIABDIRECTORY','".$_POST['sfiabdirectory']."','Special','','0')");
|
mysql_query("INSERT INTO config (var,val,category,ord,year) VALUES ('SFIABDIRECTORY','".$_POST['sfiabdirectory']."','Special','','0')");
|
||||||
|
|
||||||
$year = intval($_POST['fairyear']);
|
$year = intval($_POST['fairyear']);
|
||||||
|
$config['FAIRYEAR']=$year;
|
||||||
|
|
||||||
//copy over the config defautls
|
//copy over the config defautls
|
||||||
config_update_variables($year);
|
// config_update_variables($year);
|
||||||
|
|
||||||
// Update some variables
|
// Update some variables
|
||||||
mysql_query("UPDATE config SET
|
mysql_query("UPDATE config SET
|
||||||
|
Loading…
Reference in New Issue
Block a user