mirror of
https://github.com/typecho/typecho.git
synced 2025-03-19 01:19:40 +01:00
fix delete
This commit is contained in:
parent
5a2833c5aa
commit
f40c5c178e
@ -146,10 +146,9 @@ class Edit extends Comments implements ActionInterface
|
||||
/**
|
||||
* 删除评论
|
||||
*
|
||||
* @return int
|
||||
* @throws Exception
|
||||
*/
|
||||
public function deleteComment(): int
|
||||
public function deleteComment()
|
||||
{
|
||||
$comments = $this->request->filter('int')->getArray('coid');
|
||||
$deleteRows = 0;
|
||||
@ -200,8 +199,6 @@ class Edit extends Comments implements ActionInterface
|
||||
/** 返回原网页 */
|
||||
$this->response->goBack();
|
||||
}
|
||||
|
||||
return $deleteRows;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user