From: stronk7 Date: Sun, 27 Jul 2003 21:26:51 +0000 (+0000) Subject: //Added some debug (commented in production) X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c11c6fed9536199c466f47fd157d778e30709379;p=moodle.git //Added some debug (commented in production) --- diff --git a/backup/lib.php b/backup/lib.php index fcff668887..1c6d8ad00c 100644 --- a/backup/lib.php +++ b/backup/lib.php @@ -252,6 +252,7 @@ function backup_copy_file ($from_file,$to_file) { if (is_file($from_file)) { + //echo "
Copying ".$from_file." to ".$to_file; //Debug $perms=fileperms($from_file); return copy($from_file,$to_file) && chmod($to_file,$perms); } @@ -259,6 +260,7 @@ return backup_copy_dir($from_file,$to_file); } else{ + //echo "
Error: not file or dir ".$from_file; //Debug return false; } } @@ -268,6 +270,7 @@ global $CFG; if (!is_dir($to_file)) { + //echo "
Creating ".$to_file; //Debug mkdir($to_file,$CFG->directorypermissions); } $dir = opendir($from_file);