Permalink
Browse files

Merge branch 'wip-MDL-32393-m21' of git://github.com/samhemelryk/mood…

…le into MOODLE_21_STABLE
  • Loading branch information...
2 parents c175e01 + 5c2a2f2 commit bde399dcef30767796fa606c4b7015869895a09a @danpoltawski danpoltawski committed Apr 16, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/outputrenderers.php
View
5 lib/outputrenderers.php
@@ -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 bde399d

Please sign in to comment.