Fix internal cache, init proper functions API
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user