MDL-14045:

Assignment type now links to type/xxxx/all.php if it exists.
This commit is contained in:
thepurpleblob
2008-05-13 14:56:29 +00:00
parent 3b0d5ca301
commit 62e49765a4
+7
View File
@@ -96,6 +96,13 @@
$type = $types[$cm->assignmenttype];
// if type has an 'all.php' defined, make this a link
$pathtoall = "{$CFG->dirroot}/mod/assignment/type/{$cm->assignmenttype}/all.php";
if (file_exists($pathtoall)) {
$type = "<a href=\"{$CFG->wwwroot}/mod/assignment/type/{$cm->assignmenttype}/".
"all.php?id={$course->id}\">$type</a>";
}
$due = $cm->timedue ? userdate($cm->timedue) : '-';
if ($course->format == "weeks" or $course->format == "topics") {