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

This commit is contained in:
sam marshall
2012-01-20 10:33:05 +00:00
parent 269c884874
commit 125e250a85
+2
View File
@@ -4038,6 +4038,8 @@ class navigation_json {
$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);