mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
add contest select to cbr import
This commit is contained in:
@@ -170,6 +170,7 @@ class Cabrillo extends CI_Controller {
|
||||
}
|
||||
|
||||
//get data from upload
|
||||
$contest_id = $this->input->post('contest_id', false) ?? '';
|
||||
$data = array('upload_data' => $this->upload->data());
|
||||
|
||||
//set memory limit to allow big files
|
||||
@@ -213,6 +214,11 @@ class Cabrillo extends CI_Controller {
|
||||
array_push($station_ids, $station->station_id);
|
||||
}
|
||||
|
||||
//overwrite contest id if chosen during upload
|
||||
if($contest_id != ''){
|
||||
$parsed_cbr["HEADER"]["CONTEST"] = $contest_id;
|
||||
}
|
||||
|
||||
//create helper variables
|
||||
$custom_errors = [];
|
||||
$i = 1;
|
||||
|
||||
Reference in New Issue
Block a user