修改分类为literature
This commit is contained in:
parent
7aafcc16d1
commit
3f303c9b10
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue