]> git.mjollnir.org Git - moodle.git/commitdiff
Slight tidy-up, needs work still
authormoodler <moodler>
Thu, 9 Mar 2006 08:09:28 +0000 (08:09 +0000)
committermoodler <moodler>
Thu, 9 Mar 2006 08:09:28 +0000 (08:09 +0000)
course/report/outline/index.php

index 6dae38047761539db33587cb477eab04545484e9..b6eb455797e5e5d1d710961dd876fc8f23b1b536 100644 (file)
         error("Course id is incorrect.");
     }
 
-    if (! (isteacher($course->id) or ($course->showreports and $USER->id == $user->id))) {
+    if (!isteacher($course->id)) {
         error("You are not allowed to look at this page");
     }
 
-    add_to_log($course->id, "course", "course report", "course.php?id=$course->id",$course->id); 
+    add_to_log($course->id, "course", "report outline", "course.php?id=$course->id",$course->id); 
 
     $stractivityreport = get_string("activityreport");
     $strparticipants   = get_string("participants");
     $strcomplete       = get_string("complete");
     $stralllogs        = get_string("alllogs");
     $strtodaylogs      = get_string("todaylogs");
-    $strreports      = get_string("reports");
+    $strreports        = get_string("reports");
 
-    if ($course->category) {
-        print_header("$course->shortname: $stractivityreport", "$course->fullname",
-                 "<a href=\"../../course/view.php?id=$course->id\">$course->shortname</a> ->
+    print_header("$course->shortname: $stractivityreport", "$course->fullname",
+                 "<a href=\"../../view.php?id=$course->id\">$course->shortname</a> ->
                   <a href=\"../../report.php?id=$course->id\">$strreports</a> ->
                   $stractivityreport");
-    } else {
-        print_header("$course->shortname: $stractivityreport ($mode)", "$course->fullname",
-                 "<a href=\"../../user/view.php?id=$user->id&amp;course=$course->id\">".fullname($user)."</a> -> 
-                  $stractivityreport -> $strmode");
-    }
+
     print_heading("$course->fullname");
 
     echo "<table cellpadding=\"10\" align=\"center\"><tr>";