mirror of
https://github.com/typecho/typecho.git
synced 2025-01-29 10:21:11 +01:00
Merge pull request #871 from AlanDecode/master
修复通过 metaWeblog 接口新建草稿时返回 cid 错误的问题
This commit is contained in:
commit
d695ce3ce5
@ -108,6 +108,9 @@ class Widget_Contents_Page_Edit extends Widget_Contents_Post_Edit implements Wid
|
||||
// 完成发布插件接口
|
||||
$this->pluginHandle()->finishSave($contents, $this);
|
||||
|
||||
/** 设置高亮 */
|
||||
$this->widget('Widget_Notice')->highlight($this->cid);
|
||||
|
||||
if ($this->request->isAjax()) {
|
||||
$created = new Typecho_Date($this->options->time);
|
||||
$this->response->throwJson(array(
|
||||
|
@ -770,6 +770,9 @@ class Widget_Contents_Post_Edit extends Widget_Abstract_Contents implements Widg
|
||||
// 完成保存插件接口
|
||||
$this->pluginHandle()->finishSave($contents, $this);
|
||||
|
||||
/** 设置高亮 */
|
||||
$this->widget('Widget_Notice')->highlight($this->cid);
|
||||
|
||||
if ($this->request->isAjax()) {
|
||||
$created = new Typecho_Date();
|
||||
$this->response->throwJson(array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user