diff options
author | Ben Coburn <btcoburn@silicodon.net> | 2006-09-08 21:34:33 +0200 |
---|---|---|
committer | Ben Coburn <btcoburn@silicodon.net> | 2006-09-08 21:34:33 +0200 |
commit | d818621633e2c687264682f0504869858f9c780d (patch) | |
tree | 47988890038f1229b3040a7deefaf523e075b367 /inc/pageutils.php | |
parent | 4b5f4f4ed319790fe7f0729560616b55c4e64715 (diff) | |
download | rpg-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 'inc/pageutils.php')
-rw-r--r-- | inc/pageutils.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php index 5fadd7a36..69e04f489 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -169,9 +169,9 @@ function wikiFN($raw_id,$rev='',$clean=true){ $fn = $conf['olddir'].'/'.utf8_encodeFN($id).'.'.$rev.'.txt'; if($conf['compression']){ //test for extensions here, we want to read both compressions - if (file_exists($fn . '.gz')){ + if (@file_exists($fn . '.gz')){ $fn .= '.gz'; - }else if(file_exists($fn . '.bz2')){ + }else if(@file_exists($fn . '.bz2')){ $fn .= '.bz2'; }else{ //file doesnt exist yet, so we take the configured extension |