Permalink
Browse files

Little modification to use $CFG->directorypermissions in mkdir

  • Loading branch information...
1 parent 8cbe6d4 commit 93808667971d811b4c58472010dd0f8471f5cc27 stronk7 committed Jul 16, 2003
Showing with 4 additions and 2 deletions.
  1. +4 −2 backup/lib.php
View
@@ -264,9 +264,11 @@ function backup_copy_file ($from_file,$to_file) {
}
function backup_copy_dir($from_file,$to_file) {
+
+ global $CFG;
+
if (!is_dir($to_file)) {
- mkdir($to_file);
- chmod("$to_file",0777);
+ mkdir($to_file,$CFG->directorypermissions);
}
$dir = opendir($from_file);
while ($file=readdir($dir)) {

0 comments on commit 9380866

Please sign in to comment.