From d818621633e2c687264682f0504869858f9c780d Mon Sep 17 00:00:00 2001 From: Ben Coburn Date: Fri, 8 Sep 2006 21:34:33 +0200 Subject: suppress boring errors Suppress any errors from set_time_limit, unlink, and file_exists functions. see: http://www.freelists.org/archives/dokuwiki/09-2006/msg00004.html darcs-hash:20060908193433-05dcb-013617431870ab5bfb2ce8c6e99ba5af13493228.gz --- lib/exe/indexer.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/exe/indexer.php') diff --git a/lib/exe/indexer.php b/lib/exe/indexer.php index d65707911..ad2ad8010 100644 --- a/lib/exe/indexer.php +++ b/lib/exe/indexer.php @@ -47,8 +47,8 @@ function runTrimRecentChanges() { // Uses the imporoldchangelog plugin to upgrade the changelog automaticaly. // FIXME: Remove this from runTrimRecentChanges when it is no longer needed. if (isset($conf['changelog_old']) && - file_exists($conf['changelog_old']) && !file_exists($conf['changelog']) && - !file_exists($conf['changelog'].'_importing') && !file_exists($conf['changelog'].'_tmp')) { + @file_exists($conf['changelog_old']) && !@file_exists($conf['changelog']) && + !@file_exists($conf['changelog'].'_importing') && !@file_exists($conf['changelog'].'_tmp')) { $tmp = array(); // no event data trigger_event('TEMPORARY_CHANGELOG_UPGRADE_EVENT', $tmp); return true; @@ -58,9 +58,9 @@ function runTrimRecentChanges() { // Trims the recent changes cache to the last $conf['changes_days'] recent // changes or $conf['recent'] items, which ever is larger. // The trimming is only done once a day. - if (file_exists($conf['changelog']) && + if (@file_exists($conf['changelog']) && (filectime($conf['changelog'])+86400)