* adjust the file module.

This commit is contained in:
wangchunsheng
2010-01-13 06:34:46 +00:00
parent ac9b7978c1
commit 13b7101231
9 changed files with 29 additions and 29 deletions
+1 -2
View File
@@ -201,8 +201,7 @@ class bug extends control
{
$changes = $this->bug->update($bugID);
if(dao::isError()) die(js::error(dao::getError()));
$this->loadModel('file');
$files = $this->file->saveUpload('files', 'bug', $bugID);
$files = $this->loadModel('file')->saveUpload('bug', $bugID);
if($this->post->comment != '' or !empty($changes) or !empty($files))
{
$action = !empty($changes) ? 'Edited' : 'Commented';