From: Brion Vibber Date: Wed, 30 Jan 2008 01:06:28 +0000 (+0000) Subject: put a @ on a chmod, since all other file ops in there are so marked. X-Git-Tag: 1.31.0-rc.0~49706 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=5502fd4ca7a584b6267c151202af97b4e9b8ea59;p=lhc%2Fweb%2Fwiklou.git put a @ on a chmod, since all other file ops in there are so marked. redundant chmods can bring warnings if we don't own the file (even though it's already world-writable) --- diff --git a/includes/filerepo/FSRepo.php b/includes/filerepo/FSRepo.php index 84ec9a2709..86887d0957 100644 --- a/includes/filerepo/FSRepo.php +++ b/includes/filerepo/FSRepo.php @@ -422,7 +422,7 @@ class FSRepo extends FileRepo { $status->error( 'filerenameerror', $srcPath, $archivePath ); $good = false; } else { - chmod( $archivePath, 0644 ); + @chmod( $archivePath, 0644 ); } } if ( $good ) {