Permalink
Browse files

MDL-29896 Navigation: Make links, files clickable in nav block

  • Loading branch information...
1 parent f6b4ec2 commit 5ad40d0e19214d1082cfd9c1276417917552a236 @sammarshallou sammarshallou committed Oct 24, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/navigationlib.php
View
@@ -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);

0 comments on commit 5ad40d0

Please sign in to comment.