Permalink
Browse files

MDL-32393 navigation: Fixed up issue when rendering action_link insta…

…nces for the navigation
  • Loading branch information...
1 parent 4b3ee4f commit 5c2a2f209d4e16e9107c2d32bc8185a9dfb2f93b Sam Hemelryk committed Apr 10, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/outputrenderers.php
View
@@ -2338,7 +2338,10 @@ protected function render_navigation_node(navigation_node $item) {
if ($item->hidden) {
$link->add_class('dimmed');
}
- $link->text = $content.$link->text; // add help icon
+ if (!empty($content)) {
+ // Providing there is content we will use that for the link content.
+ $link->text = $content;
+ }
$content = $this->render($link);
} else if ($item->action instanceof moodle_url) {
$attributes = array();

0 comments on commit 5c2a2f2

Please sign in to comment.