From d480b970b7bd2a000215281c74cd142d7b2b733f Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Fri, 11 Feb 2011 10:01:06 +0100 Subject: [PATCH] MDL-25991 add icon when action_link used in navigation Alos removing old TODO. --- lib/outputrenderers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 9d95ee27e88..3231669c206 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -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();