mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Added the 'Restore' option near the 'Backup' one to course list.
See bug 616. Closed. It needs Martin confirmation.
This commit is contained in:
parent
2b4c64e98f
commit
41b9b44faf
1 changed files with 7 additions and 1 deletions
|
@ -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".
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue