Permalink
Browse files

Now "backupdir" string is hardcoded in backup process.

  • Loading branch information...
1 parent 9e426d5 commit 0c6e10b33e63339b865e4b04bc59d7c6b0eda400 stronk7 committed Aug 2, 2003
Showing with 4 additions and 1 deletion.
  1. +1 −1 backup/backup_execute.html
  2. +3 −0 course/lib.php
@@ -285,6 +285,6 @@
//Print final message
print_simple_box(get_string("backupfinished"),"CENTER");
- print_continue("$CFG->wwwroot/files/index.php?id=".$preferences->backup_course."&wdir=/".get_string("backupdir"));
+ print_continue("$CFG->wwwroot/files/index.php?id=".$preferences->backup_course."&wdir=/backupdata");
?>
View
@@ -789,6 +789,9 @@ function print_course_admin_links($course, $width=180) {
$admindata[]="<a href=\"$CFG->wwwroot/backup/backup.php?id=$course->id\">".get_string("backup")."...</a>";
$adminicon[]="<img src=\"$pixpath/i/backup.gif\" height=16 width=16 alt=\"\">";
+
+ $admindata[]="<a href=\"$CFG->wwwroot/files/index.php?id=$course->id&wdir=/backupdata\">".get_string("restore")."...</a>";
+ $adminicon[]="<img src=\"$pixpath/i/restore.gif\" height=16 width=16 alt=\"\">";
$admindata[]="<a href=\"$CFG->wwwroot/doc/view.php?id=$course->id&file=teacher.html\">".get_string("help")."...</a>";
$adminicon[]="<img src=\"$modpixpath/resource/icon.gif\" height=16 width=16 alt=\"\">";

0 comments on commit 0c6e10b

Please sign in to comment.