MDL-25991 add icon when action_link used in navigation
[moodle.git] / 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();