diff --git a/admin/index.php b/admin/index.php index 71ef12c3162..7fd01bdc45f 100644 --- a/admin/index.php +++ b/admin/index.php @@ -363,12 +363,8 @@ "

".get_string("assignteachers")."

". "

".get_string("deletecourse")."

". "

".get_string("categories")."

"; - if (!empty($CFG->backup_version)) { - //MODIFY RELATIVE PATH TO backup.php - $backup_path = "../backup/backup.php"; - //END MODIFY - $table->data[0][1] .= "

".get_string("coursebackup")."

"; - } + $table->data[0][1] .= "

".get_string("coursebackup")."

"; + $table->data[0][1] .= "

id\">".get_string("courserestore")."

"; if ($CFG->auth == "email" || $CFG->auth == "none" || $CFG->auth == "manual") { $table->data[0][2] = "

".get_string("addnewuser")."

"; } diff --git a/files/index.php b/files/index.php index 504a193c4a9..bc43c73df8d 100644 --- a/files/index.php +++ b/files/index.php @@ -32,12 +32,12 @@ function html_header($course, $wdir, $formfield=""){ + global $CFG; + $strfiles = get_string("files"); if ($wdir == "/") { - print_header("$course->shortname: $strfiles", "$course->fullname", - "id\">$course->shortname - -> $strfiles", $formfield); + $fullnav = "$strfiles"; } else { $dirs = explode("/", $wdir); $numdirs = count($dirs); @@ -48,10 +48,21 @@ $link .= "/".urlencode($dirs[$i]); $navigation .= "id&wdir=$link\">".$dirs[$i].""; } + $fullnav = "id&wdir=/\">$strfiles $navigation"; + } + if (! $site = get_site()) { + error("Invalid site!"); + } + + if ($course->id == $site->id) { print_header("$course->shortname: $strfiles", "$course->fullname", - "id\">$course->shortname -> - id&wdir=/\">$strfiles $navigation", $formfield); + "admin/index.php\">".get_string("administration"). + " -> $fullnav", $formfield); + } else { + print_header("$course->shortname: $strfiles", "$course->fullname", + "id\">$course->shortname". + " -> $fullnav", $formfield); } echo ""; echo "";