]> git.mjollnir.org Git - moodle.git/commitdiff
Little modification to show the "Backup Course" option if
authorstronk7 <stronk7>
Fri, 4 Jul 2003 17:47:10 +0000 (17:47 +0000)
committerstronk7 <stronk7>
Fri, 4 Jul 2003 17:47:10 +0000 (17:47 +0000)
backup utility is installed (not shwown else)

admin/index.php

index 7fefcfcad7b2876ccd70377c2ef5aed6c14a3f0a..0f7cc6f1739cb49c7734820746908aad79da28d0 100644 (file)
                          "<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>";
         }