From 07bc24351d629c9815e97fd29f0ce6ade582860f Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 13 Sep 2003 12:59:39 +0000 Subject: [PATCH] Show restore icon all the time, even if there are no backups. --- course/lib.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/course/lib.php b/course/lib.php index 2924612cbe..714349ca72 100644 --- a/course/lib.php +++ b/course/lib.php @@ -817,11 +817,8 @@ function print_course_admin_links($course, $width=180) { $admindata[]="wwwroot/backup/backup.php?id=$course->id\">".get_string("backup")."..."; $adminicon[]="\"\""; - //Only showed if "backupdata" dir exists - if (is_dir("$CFG->dataroot/$course->id/backupdata")) { - $admindata[]="wwwroot/files/index.php?id=$course->id&wdir=/backupdata\">".get_string("restore")."..."; - $adminicon[]="\"\""; - } + $admindata[]="wwwroot/files/index.php?id=$course->id&wdir=/backupdata\">".get_string("restore")."..."; + $adminicon[]="\"\""; $admindata[]="id\">".get_string("scales")."..."; $adminicon[]="\"\""; } -- 2.39.5