fixed a bug of dstoring a wrong value into the createdon field

This commit is contained in:
hyung-hwan 2015-02-10 04:32:32 +00:00
parent 316aa08bff
commit c9cb19ae17
3 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ class FileModel extends Model
$this->db->set ('summary', $file->summary); $this->db->set ('summary', $file->summary);
$this->db->set ('md5sum', $file->md5sum); $this->db->set ('md5sum', $file->md5sum);
$this->db->set ('description', $file->description); $this->db->set ('description', $file->description);
$this->db->set ('createdon', $userid); $this->db->set ('createdon', date('Y-m-d H:i:s'));
$this->db->set ('createdby', $userid); $this->db->set ('createdby', $userid);
$this->db->set ('updatedon', date('Y-m-d H:i:s')); $this->db->set ('updatedon', date('Y-m-d H:i:s'));
$this->db->set ('updatedby', $userid); $this->db->set ('updatedby', $userid);

View File

@ -117,7 +117,7 @@ $this->load->view (
<div id="file_show_mainarea_result_info"> <div id="file_show_mainarea_result_info">
<ul> <ul>
<li><?=$this->lang->line('Created on')?> <?= $file->updatedon ?></li> <li><?=$this->lang->line('Created on')?> <?= $file->createdon ?></li>
<li><?=$this->lang->line('Created by')?> <?= $file->createdby ?></li> <li><?=$this->lang->line('Created by')?> <?= $file->createdby ?></li>
<li><?=$this->lang->line('Last updated on')?> <?= $file->updatedon ?></li> <li><?=$this->lang->line('Last updated on')?> <?= $file->updatedon ?></li>
<li><?=$this->lang->line('Last updated by')?> <?= $file->updatedby ?></li> <li><?=$this->lang->line('Last updated by')?> <?= $file->updatedby ?></li>