Lines Matching refs:changelog
1128 $changelog = $conf['metadir'].'/_comments.changes';
1150 io_saveFile($changelog, $logline, true); //global changelog cache
1151 $this->_trimRecentCommentsLog($changelog);
1164 * @param string $changelog file path
1167 protected function _trimRecentCommentsLog($changelog) { argument
1170 if (@file_exists($changelog) &&
1171 (filectime($changelog) + 86400) < time() &&
1172 !@file_exists($changelog.'_tmp')
1175 io_lock($changelog);
1176 $lines = file($changelog);
1179 io_unlock($changelog);
1183 io_saveFile($changelog.'_tmp', ''); // presave tmp as 2nd lock
1208 io_saveFile($changelog.'_tmp', implode('', $out_lines));
1209 @unlink($changelog);
1210 if (!rename($changelog.'_tmp', $changelog)) {
1212 io_unlock($changelog);
1213 io_saveFile($changelog, implode('', $out_lines));
1214 @unlink($changelog.'_tmp');
1216 io_unlock($changelog);