MDL-25991 add icon when action_link used in navigation
Alos removing old TODO.
This commit is contained in:
@@ -2409,11 +2409,11 @@ EOD;
|
||||
return '';
|
||||
}
|
||||
if ($item->action instanceof action_link) {
|
||||
//TODO: to be replaced with something else
|
||||
$link = $item->action;
|
||||
if ($item->hidden) {
|
||||
$link->add_class('dimmed');
|
||||
}
|
||||
$link->text = $content.$link->text; // add help icon
|
||||
$content = $this->render($link);
|
||||
} else if ($item->action instanceof moodle_url) {
|
||||
$attributes = array();
|
||||
|
||||
Reference in New Issue
Block a user