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

This commit is contained in:
sam marshall 2011-10-24 12:46:07 +01:00
parent f6b4ec2b4a
commit 5ad40d0e19

View File

@ -4047,6 +4047,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);