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

@ -386,7 +386,7 @@ class File extends Controller
{
$data['message'] = $this->lang->line('MSG_FORM_INPUT_INCOMPLETE');
$data['file'] = $file;
$this->load->view ($this->VIEW_EDIT, $data);
$this->load->view ($this->VIEW_EDIT, $data);
}
}
else
@ -408,7 +408,7 @@ class File extends Controller
else
{
$data['file'] = $file;
$this->load->view ($this->VIEW_EDIT, $data);
$this->load->view ($this->VIEW_EDIT, $data);
}
}
else

View File

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

View File

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