* adjust for save file not with extension.

This commit is contained in:
wangyidong
2017-06-26 14:47:58 +08:00
parent c8f4f4fc0f
commit 794fb575db
20 changed files with 118 additions and 99 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ class actionModel extends model
$action->extra = $extra;
/* Process action. */
$action = $this->loadModel('file')->processEditor($action, 'comment', $this->post->uid);
$action = $this->loadModel('file')->processImgURL($action, 'comment', $this->post->uid);
/* Get product and project for this object. */
$productAndProject = $this->getProductAndProject($action->objectType, $objectID);
@@ -893,7 +893,7 @@ class actionModel extends model
$action->comment = trim(strip_tags($this->post->lastComment, $this->config->allowedTags));
/* Process action. */
$action = $this->loadModel('file')->processEditor($action, 'comment', $this->post->uid);
$action = $this->loadModel('file')->processImgURL($action, 'comment', $this->post->uid);
$this->dao->update(TABLE_ACTION)
->set('date')->eq(helper::now())