Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Little modification to show the "Backup Course" option if

backup utility is installed (not shwown else)
  • Loading branch information...
commit 7f7d8c95086a6c85848eb22d7762459e8a7853f8 1 parent 56ca681
stronk7 authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 admin/index.php
View
6 admin/index.php
@@ -357,6 +357,12 @@
"<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 = "../contrib/stronk7/backup/backup.php";
+ //END MODIFY
+ $table->data[0][1] .= "<p><a href=\"".$backup_path."\">".get_string("coursebackup")."</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>";
}
Please sign in to comment.
Something went wrong with that request. Please try again.