Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 101e9cad4843d8cdc49f14dae6b69889298d37ac 1 parent 84fa8f5
authored March 14, 2006

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  mod/assignment/lib.php
2  mod/assignment/lib.php
@@ -2317,7 +2317,7 @@ function assignment_print_overview($courses, &$htmlarray) {
2317 2317
         $assignmentclass = "assignment_$assignment->assignmenttype";
2318 2318
         $instance = new $assignmentclass($assignment->coursemodule, $assignment);
2319 2319
 
2320  
-        $str = '<a title="'.$instance->strassignment.'" href="'.$CFG->wwwroot.'/mod/assignment/view.php?id='.$instance->cm->id.'">'
  2320
+        $str = '<a '.($assignment->visible?'':' class="dimmed"').'title="'.$instance->strassignment.'" href="'.$CFG->wwwroot.'/mod/assignment/view.php?id='.$instance->cm->id.'">'
2321 2321
             .$instance->strassignment.': '.$instance->assignment->name.'</a><br />';
2322 2322
         $str .= $strduedate.': '.userdate($instance->assignment->timedue).'<br />';
2323 2323
         if (isteacher($instance->course->id)) {

0 notes on commit 101e9ca

Please sign in to comment.
Something went wrong with that request. Please try again.