diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-09-16 16:53:50 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-09-16 16:53:50 +0200 |
commit | 8e0b019f895b3e742a353ac11ff1fe38d121de18 (patch) | |
tree | e6c49456c45633439840f06232986fc77f8c29bc /inc | |
parent | f1b03b6ac2e0ee48533ebb49ba57bc6daea5ca9a (diff) | |
download | rpg-8e0b019f895b3e742a353ac11ff1fe38d121de18.tar.gz rpg-8e0b019f895b3e742a353ac11ff1fe38d121de18.tar.bz2 |
permission setting in io_rename fixed #912
darcs-hash:20060916145350-7ad00-cb78b531006e1f1875b2d8e8bc648740e5021736.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/io.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/io.php b/inc/io.php index 2b1272675..5fd1d6673 100644 --- a/inc/io.php +++ b/inc/io.php @@ -490,7 +490,7 @@ function io_rename($from,$to){ global $conf; if(!@rename($from,$to)){ if(@copy($from,$to)){ - if($conf['fperm']) chmod($file, $conf['fperm']); + if($conf['fperm']) chmod($to, $conf['fperm']); @unlink($from); return true; } |