Skip to content

Commit

Permalink
MDL-29896 Navigation: Make links, files clickable in nav block
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou committed Jan 20, 2012
1 parent f6b4ec2 commit 5ad40d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/navigationlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -4047,6 +4047,8 @@ protected function convert_child($child, $depth=1) {
$attributes['link'] = $child->action;
} else if ($child->action instanceof moodle_url) {
$attributes['link'] = $child->action->out();
} else if ($child->action instanceof action_link) {
$attributes['link'] = $child->action->url->out();
}
$attributes['hidden'] = ($child->hidden);
$attributes['haschildren'] = ($child->children->count()>0 || $child->type == navigation_node::TYPE_CATEGORY);
Expand Down

0 comments on commit 5ad40d0

Please sign in to comment.