MDL-25991 add icon when action_link used in navigation

Alos removing old TODO.
This commit is contained in:
Petr Skoda
2011-02-11 10:01:06 +01:00
parent 625943586b
commit d480b970b7
+1 -1
View File
@@ -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();