Lines Matching refs:changelog
1237 $changelog = $conf['metadir'] . '/_comments.changes';
1259 io_saveFile($changelog, $logline, true); //global changelog cache
1260 $this->trimRecentCommentsLog($changelog);
1271 * @param string $changelog file path
1276 protected function trimRecentCommentsLog($changelog) argument
1280 if (@file_exists($changelog)
1281 && (filectime($changelog) + 86400) < time()
1282 && !@file_exists($changelog . '_tmp')
1285 io_lock($changelog);
1286 $lines = file($changelog);
1289 io_unlock($changelog);
1294 io_saveFile($changelog . '_tmp', '');
1319 io_saveFile($changelog . '_tmp', implode('', $out_lines));
1320 @unlink($changelog);
1321 if (!rename($changelog . '_tmp', $changelog)) {
1323 io_unlock($changelog);
1324 io_saveFile($changelog, implode('', $out_lines));
1325 @unlink($changelog . '_tmp');
1327 io_unlock($changelog);