diff options
author | Sashi20 | 2018-08-01 10:41:51 +0530 |
---|---|---|
committer | Sashi20 | 2018-08-01 10:41:51 +0530 |
commit | 8ea0e95416816333c762ee0845447cbbb207e8fd (patch) | |
tree | f8616d79cd90f9d543e40ed43340fd6730a3c592 /full_download.inc | |
parent | ecd6111dcc899433278b2a6411e9146de58fac7d (diff) | |
download | cfd_case_study-8ea0e95416816333c762ee0845447cbbb207e8fd.tar.gz cfd_case_study-8ea0e95416816333c762ee0845447cbbb207e8fd.tar.bz2 cfd_case_study-8ea0e95416816333c762ee0845447cbbb207e8fd.zip |
Modified titles in case directory submission and download case study
Diffstat (limited to 'full_download.inc')
-rwxr-xr-x | full_download.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/full_download.inc b/full_download.inc index f3fbc00..3675870 100755 --- a/full_download.inc +++ b/full_download.inc @@ -28,8 +28,8 @@ function cfd_case_study_download_full_project() $query->fields('case_study_submitted_abstracts_file'); $query->condition('proposal_id', $id); $project_files = $query->execute(); - while ($esim_project_files = $project_files->fetchObject()) { - $zip->addFile($root_path . $CASE_STUDY_PATH . $esim_project_files->filepath, $CASE_STUDY_PATH . str_replace(' ', '_', basename($esim_project_files->filename))); + while ($cfd_project_files = $project_files->fetchObject()) { + $zip->addFile($root_path . $CASE_STUDY_PATH . $cfd_project_files->filepath, $CASE_STUDY_PATH . str_replace(' ', '_', basename($cfd_project_files->filename))); } $zip_file_count = $zip->numFiles; $zip->close(); @@ -93,8 +93,8 @@ function circuit_simulation_download_completed_project() $query->condition('proposal_id', $id); $project_files = $query->execute(); //var_dump($root_path . $CASE_STUDY_PATH . 'project_files/');die; - while ($esim_project_files = $project_files->fetchObject()) { - $zip->addFile($root_path . $CASE_STUDY_PATH . 'project_files/' . $esim_project_files->filepath, $CASE_STUDY_PATH . str_replace(' ', '_', basename($esim_project_files->filename))); + while ($cfd_project_files = $project_files->fetchObject()) { + $zip->addFile($root_path . $CASE_STUDY_PATH . 'project_files/' . $cfd_project_files->filepath, $CASE_STUDY_PATH . str_replace(' ', '_', basename($cfd_project_files->filename))); } $zip_file_count = $zip->numFiles; $zip->close(); |