From 3f303c9b1050223fc5bb213522f880ca49666295 Mon Sep 17 00:00:00 2001 From: wlx Date: Sat, 28 Sep 2013 06:16:55 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=86=E7=B1=BB=E4=B8=BAli?= =?UTF-8?q?terature?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/module/Reference/Reference.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;