Permalink
Browse files

Added and commented some debug lines.

  • Loading branch information...
1 parent b1c305a commit 2aa7d9247222c945b8374577db3a0133000ff08b stronk7 committed Jul 29, 2003
Showing with 4 additions and 0 deletions.
  1. +4 −0 backup/backuplib.php
View
4 backup/backuplib.php
@@ -859,6 +859,7 @@ function backup_zip ($preferences,$moodle_home) {
$filelist = list_directories_and_files ($basedir);
if (empty($CFG->zip)) { // Use built-in php-based zip function
+ //echo "<br>Using pclzip"; //Debug
$files = array();
foreach ($filelist as $file) {
//If directory, append "/"
@@ -875,15 +876,18 @@ function backup_zip ($preferences,$moodle_home) {
$status = false;
}
} else { // Use external zip program
+ //echo "<br>Using external zip"; //Debug
$files = "";
foreach ($filelist as $file) {
$files .= basename($file);
$files .= " ";
}
$command = "cd $basedir ; $CFG->zip -r $name $files";
+ //echo "<br>Executing command: ".$command; //Debug
$status = Exec($command);
}
+ //echo "<br>Status: ".$status; //Debug
return $status;
}

0 comments on commit 2aa7d92

Please sign in to comment.