MDL-25991 add icon when action_link used in navigation
authorPetr Skoda <commits@skodak.org>
Fri, 11 Feb 2011 09:01:06 +0000 (10:01 +0100)
committerPetr Skoda <commits@skodak.org>
Fri, 11 Feb 2011 09:01:06 +0000 (10:01 +0100)
Alos removing old TODO.

lib/outputrenderers.php

index 9d95ee2..3231669 100644 (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();