Added the 'Restore' option near the 'Backup' one to course list.

See bug 616. Closed. It needs Martin confirmation.
This commit is contained in:
stronk7 2003-08-15 08:50:35 +00:00
parent 2b4c64e98f
commit 41b9b44faf

View file

@ -221,6 +221,7 @@
$stredit = get_string("edit"); $stredit = get_string("edit");
$strdelete = get_string("delete"); $strdelete = get_string("delete");
$strbackup = get_string("backup"); $strbackup = get_string("backup");
$strrestore = get_string("restore");
$strmoveup = get_string("moveup"); $strmoveup = get_string("moveup");
$strmovedown = get_string("movedown"); $strmovedown = get_string("movedown");
$strupdate = get_string("update"); $strupdate = get_string("update");
@ -280,7 +281,12 @@
echo "<a title=\"$strbackup\" href=\"../backup/backup.php?id=$course->id\"><img". echo "<a title=\"$strbackup\" href=\"../backup/backup.php?id=$course->id\"><img".
" src=\"$pixpath/t/backup.gif\" height=11 width=11 border=0></a> "; " src=\"$pixpath/t/backup.gif\" height=11 width=11 border=0></a> ";
//Only showed if "backupdata" dir exists
if (is_dir("$CFG->dataroot/$course->id/backupdata")) {
echo "<a title=\"$strrestore\" href=\"../files/index.php?id=$course->id&wdir=/backupdata\"><img".
" src=\"$pixpath/t/restore.gif\" height=11 width=11 border=0></a> ";
}
if ($up) { if ($up) {
echo "<a title=\"$strmoveup\" href=\"category.php?id=$category->id&moveup=$course->id\"><img". echo "<a title=\"$strmoveup\" href=\"category.php?id=$category->id&moveup=$course->id\"><img".