mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 20:26:32 +01:00
Better way of specifying backupdata name
This commit is contained in:
parent
52dd8d7dbf
commit
f5e8e2f6e1
@ -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=\"\">";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user