diff options
author | fossee-dell | 2017-08-30 11:28:42 +0530 |
---|---|---|
committer | fossee-dell | 2017-08-30 11:28:42 +0530 |
commit | 31c85860d821af590b312740157c153040f98289 (patch) | |
tree | e3a3977fffaa25e016ea5c71f7d02bb20b4a931f /download.inc | |
parent | 1d1dcba8bbab9979009261148f89adcb4a8c6991 (diff) | |
download | esim_circuit_simulation_project_module-31c85860d821af590b312740157c153040f98289.tar.gz esim_circuit_simulation_project_module-31c85860d821af590b312740157c153040f98289.tar.bz2 esim_circuit_simulation_project_module-31c85860d821af590b312740157c153040f98289.zip |
Minor issues fixed
Diffstat (limited to 'download.inc')
-rwxr-xr-x | download.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/download.inc b/download.inc index 1daad51..7e545ca 100755 --- a/download.inc +++ b/download.inc @@ -121,7 +121,7 @@ function circuit_simulation_download_solution() while ($solution_dependency_files_row = $solution_dependency_files_q->fetchObject()) { //$dependency_file_data = (db_query("SELECT * FROM {circuit_simulation_dependency_files} WHERE id = %d LIMIT 1", $solution_dependency_files_row->dependency_id))->fetchObject(); - $query = db_select('esim_esim_circuit_simulation_dependency_files'); + $query = db_select('esim_circuit_simulation_dependency_files'); $query->fields('esim_circuit_simulation_dependency_files'); $query->condition('id', $solution_dependency_files_row->dependency_id); $query->range(0, 1); @@ -154,7 +154,7 @@ function circuit_simulation_download_experiment() $root_path = circuit_simulation_path(); /* get solution data */ //$experiment_q = db_query("SELECT * FROM {esim_circuit_simulation_experiment} WHERE id = %d", $experiment_id); - $query = db_select('esim_esim_circuit_simulation_experiment'); + $query = db_select('esim_circuit_simulation_experiment'); $query->fields('esim_circuit_simulation_experiment'); $query->condition('id', $experiment_id); $experiment_q = $query->execute(); @@ -166,7 +166,7 @@ function circuit_simulation_download_experiment() $zip = new ZipArchive; $zip->open($zip_filename, ZipArchive::CREATE); //$solution_q = db_query("SELECT * FROM {esim_circuit_simulation_solution} WHERE experiment_id = %d AND approval_status = 1", $experiment_id); - $query = db_select('esim_esim_circuit_simulation_solution'); + $query = db_select('esim_circuit_simulation_solution'); $query->fields('esim_circuit_simulation_solution'); $query->condition('experiment_id', $experiment_id); $query->condition('approval_status', 1); @@ -188,14 +188,14 @@ function circuit_simulation_download_experiment() $zip->addFile($root_path . $solution_files_row->directory_name . '/' . $solution_files_row->filepath, $EXP_PATH . $CODE_PATH . str_replace(' ', '_', ($solution_files_row->filename))); } //$solution_files_row = $solution_files_q->fetchObject() /* dependency files */ - $query = db_select('esim_esim_circuit_simulation_solution_dependency'); + $query = db_select('esim_circuit_simulation_solution_dependency'); $query->fields('esim_circuit_simulation_solution_dependency'); $query->condition('solution_id', $solution_row->id); $solution_dependency_files_q = $query->execute(); while ($solution_dependency_files_row = $solution_dependency_files_q->fetchObject()) { //$dependency_file_data = (db_query("SELECT * FROM {circuit_simulation_dependency_files} WHERE id = %d LIMIT 1", $solution_dependency_files_row->dependency_id))->fetchObject(); - $query = db_select('esim_esim_circuit_simulation_dependency_files'); + $query = db_select('esim_circuit_simulation_dependency_files'); $query->fields('esim_circuit_simulation_dependency_files'); $query->condition('id', $solution_dependency_files_row->dependency_id); $query->range(0, 1); |