Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 5ad40d0e19214d1082cfd9c1276417917552a236 1 parent f6b4ec2
@sammarshallou sammarshallou authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/navigationlib.php
View
2  lib/navigationlib.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.