From: stronk7 Date: Fri, 15 Aug 2003 08:50:35 +0000 (+0000) Subject: Added the 'Restore' option near the 'Backup' one to course list. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=41b9b44faf6e5198179ff5d99f98b8d49d6f5f3b;p=moodle.git Added the 'Restore' option near the 'Backup' one to course list. See bug 616. Closed. It needs Martin confirmation. --- diff --git a/course/category.php b/course/category.php index 39ea3ca9a9..0744a656c0 100644 --- a/course/category.php +++ b/course/category.php @@ -221,6 +221,7 @@ $stredit = get_string("edit"); $strdelete = get_string("delete"); $strbackup = get_string("backup"); + $strrestore = get_string("restore"); $strmoveup = get_string("moveup"); $strmovedown = get_string("movedown"); $strupdate = get_string("update"); @@ -280,7 +281,12 @@ echo "id\"> "; - + + //Only showed if "backupdata" dir exists + if (is_dir("$CFG->dataroot/$course->id/backupdata")) { + echo "id&wdir=/backupdata\"> "; + } if ($up) { echo "id&moveup=$course->id\">