summaryrefslogtreecommitdiff
path: root/lib/exe/indexer.php
diff options
context:
space:
mode:
authorBen Coburn <btcoburn@silicodon.net>2006-09-08 21:34:33 +0200
committerBen Coburn <btcoburn@silicodon.net>2006-09-08 21:34:33 +0200
commitd818621633e2c687264682f0504869858f9c780d (patch)
tree47988890038f1229b3040a7deefaf523e075b367 /lib/exe/indexer.php
parent4b5f4f4ed319790fe7f0729560616b55c4e64715 (diff)
downloadrpg-d818621633e2c687264682f0504869858f9c780d.tar.gz
rpg-d818621633e2c687264682f0504869858f9c780d.tar.bz2
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
Diffstat (limited to 'lib/exe/indexer.php')
-rw-r--r--lib/exe/indexer.php12
1 files changed, 6 insertions, 6 deletions
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)<time() &&
- !file_exists($conf['changelog'].'_tmp')) {
+ !@file_exists($conf['changelog'].'_tmp')) {
io_lock($conf['changelog']);
$lines = file($conf['changelog']);
if (count($lines)<$conf['recent']) {
@@ -86,12 +86,12 @@ function runTrimRecentChanges() {
}
}
io_saveFile($conf['changelog'].'_tmp', implode('', $out_lines));
- unlink($conf['changelog']);
+ @unlink($conf['changelog']);
if (!rename($conf['changelog'].'_tmp', $conf['changelog'])) {
// rename failed so try another way...
io_unlock($conf['changelog']);
io_saveFile($conf['changelog'], implode('', $out_lines));
- unlink($conf['changelog'].'_tmp');
+ @unlink($conf['changelog'].'_tmp');
} else {
io_unlock($conf['changelog']);
}