This commit is contained in:
pengjiangxiu
2017-07-21 11:27:26 +08:00
parent 8b6b41b19a
commit 594cea2f8c
4 changed files with 13 additions and 1 deletions
+10 -1
View File
@@ -113,7 +113,16 @@ class action extends control
*/
public function editComment($actionID)
{
if(trim(strip_tags($this->post->lastComment, '<img>'))) $this->action->updateComment($actionID);
if(trim(strip_tags($this->post->lastComment, '<img>')))
{
$this->action->updateComment($actionID);
}
else
{
dao::$errors['submit'][] = $this->lang->action->historyEdit;
$this->send(array('result' => 'fail', 'message' => dao::getError()));
}
die(js::locate($this->server->http_referer, 'parent'));
}
}
+1
View File
@@ -31,6 +31,7 @@ $lang->action->textDiff = 'Text Format';
$lang->action->original = 'Original Format';
$lang->action->confirmHideAll = 'Do you want to hide all the records?';
$lang->action->needEdit = '%s you want to restore has already existed. Please edit it.';
$lang->action->historyEdit = 'The history editor cannot be empty.';
$lang->action->dynamic = new stdclass();
$lang->action->dynamic->today = 'Today';
+1
View File
@@ -31,6 +31,7 @@ $lang->action->textDiff = '文本格式';
$lang->action->original = '原始格式';
$lang->action->confirmHideAll = '您确定要全部隐藏这些记录吗?';
$lang->action->needEdit = '要还原%s的名称或代号已经存在,请编辑更改。';
$lang->action->historyEdit = '历史记录编辑不能为空。';
$lang->action->dynamic = new stdclass();
$lang->action->dynamic->today = '今天';
+1
View File
@@ -31,6 +31,7 @@ $lang->action->textDiff = '文本格式';
$lang->action->original = '原始格式';
$lang->action->confirmHideAll = '您確定要全部隱藏這些記錄嗎?';
$lang->action->needEdit = '要還原%s的名稱或代號已經存在,請編輯更改。';
$lang->action->historyEdit = '歷史記錄編輯不能為空。';
$lang->action->dynamic = new stdclass();
$lang->action->dynamic->today = '今天';