diff options
Diffstat (limited to 'inc/io.php')
-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; } |