diff --git a/application/module/Reference/Reference.php b/application/module/Reference/Reference.php index 37cce94d..f43ab11e 100644 --- a/application/module/Reference/Reference.php +++ b/application/module/Reference/Reference.php @@ -99,7 +99,7 @@ class Reference public function uploadReferencePdf($file) { $files = new Files(); - $file_info = $files->upload($file,'reference/',true); + $file_info = $files->upload($file,'literature/',true); if(isset($file_info['error']) && !empty($file_info['error'])) { @@ -108,7 +108,7 @@ class Reference $file_data = array( 'filename' => $file_info['file_url'], - 'filetype' => 'reference', + 'filetype' => 'literature', 'filedesc' => $file_info['file_mime'], 'userid' => view::User('id'), 'filesize' => $file_info['file_size'], @@ -188,7 +188,7 @@ class Reference { $sql = "SELECT att.*,ref.attid,ref.id as refid FROM {$this->table->attachments} att LEFT JOIN {$this->table->reference} ref ON att.id=ref.attid - WHERE att.filetype='reference'"; + WHERE att.filetype='literature'"; $rs = $this->db->query($sql); $rows = $rs->fetchAll(); return $rows;