New restore link for admins so they can restore courses ...

This commit is contained in:
moodler
2003-08-01 15:09:35 +00:00
parent 4210bec136
commit 65c59e30b8
2 changed files with 18 additions and 11 deletions
+2 -6
View File
@@ -363,12 +363,8 @@
"<p><a href=\"teacher.php\">".get_string("assignteachers")."</a></p>".
"<p><a href=\"../course/delete.php\">".get_string("deletecourse")."</a></p>".
"<p><a href=\"../course/categories.php\">".get_string("categories")."</a></p>";
if (!empty($CFG->backup_version)) {
//MODIFY RELATIVE PATH TO backup.php
$backup_path = "../backup/backup.php";
//END MODIFY
$table->data[0][1] .= "<p><a href=\"".$backup_path."\">".get_string("coursebackup")."</a></p>";
}
$table->data[0][1] .= "<p><a href=\"../backup/backup.php\">".get_string("coursebackup")."</a></p>";
$table->data[0][1] .= "<p><a href=\"../files/index.php?id=$site->id\">".get_string("courserestore")."</a></p>";
if ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual") {
$table->data[0][2] = "<p><a href=\"user.php?newuser=true\">".get_string("addnewuser")."</a></p>";
}