mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 19:26:08 +05:30
Fixed comment delete function.
This commit is contained in:
parent
7b80faa372
commit
4afecb9450
1 changed files with 2 additions and 2 deletions
|
|
@ -501,9 +501,9 @@ function commentPublish($file, $commentId)
|
|||
* @param string $commentId Comment ID
|
||||
* @return bool Success status
|
||||
*/
|
||||
function commentDelete($url, $mdfile=null, $commentId)
|
||||
function commentDelete($mdfile, $commentId)
|
||||
{
|
||||
$file = get_comments_file($url, $mdfile=null);
|
||||
$file = get_comments_file(null, $mdfile);
|
||||
if (!file_exists($file)) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue