Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Dim link if not visible in my course view for assignment module

  • Loading branch information...
commit 101e9cad4843d8cdc49f14dae6b69889298d37ac 1 parent 84fa8f5
patrickslee authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/assignment/lib.php
View
2  mod/assignment/lib.php
@@ -2317,7 +2317,7 @@ function assignment_print_overview($courses, &$htmlarray) {
$assignmentclass = "assignment_$assignment->assignmenttype";
$instance = new $assignmentclass($assignment->coursemodule, $assignment);
- $str = '<a title="'.$instance->strassignment.'" href="'.$CFG->wwwroot.'/mod/assignment/view.php?id='.$instance->cm->id.'">'
+ $str = '<a '.($assignment->visible?'':' class="dimmed"').'title="'.$instance->strassignment.'" href="'.$CFG->wwwroot.'/mod/assignment/view.php?id='.$instance->cm->id.'">'
.$instance->strassignment.': '.$instance->assignment->name.'</a><br />';
$str .= $strduedate.': '.userdate($instance->assignment->timedue).'<br />';
if (isteacher($instance->course->id)) {
Please sign in to comment.
Something went wrong with that request. Please try again.