Skip to content
Permalink
Browse files

Better way of specifying backupdata name

  • Loading branch information...
moodler
moodler committed Aug 9, 2003
1 parent 52dd8d7 commit f5e8e2f6e1029563d38496dbbac6fde5e231b037
Showing with 1 addition and 1 deletion.
  1. +1 −1 course/lib.php
@@ -785,7 +785,7 @@ function print_course_admin_links($course, $width=180) {
$adminicon[]="<img src=\"$pixpath/i/backup.gif\" height=16 width=16 alt=\"\">";
//Only showed if "backupdata" dir exists
if (is_dir($CFG->dataroot."/".$course->id."/".backupdata)) {
if (is_dir("$CFG->dataroot/$course->id/backupdata")) {
$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=\"\">";
}

0 comments on commit f5e8e2f

Please sign in to comment.
You can’t perform that action at this time.