Archived
1
0

Fix internal cache, init proper functions API

This commit is contained in:
onli
2019-02-16 13:07:53 +01:00
parent fd00877141
commit 4c4545428d
4 changed files with 35 additions and 35 deletions
+2 -2
View File
@@ -722,7 +722,7 @@ function serendipity_approveComment($cid, $entry_id, $force = false, $moderate =
serendipity_plugin_api::hook_event('backend_approvecomment', $rs);
}
serendipity_cleanCache();
if ($flip) {
if ($moderate) return -1; // comment set to pending
if (!$moderate) return 1; // comment set to approved
@@ -942,7 +942,7 @@ function serendipity_insertComment($id, $commentInfo, $type = 'NORMAL', $source
if ($GLOBALS['tb_logging']) {
fclose($fp);
}
serendipity_cleanCache();
return $cid;
}