Permalink
Browse files

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

…nces for the navigation
  • Loading branch information...
1 parent f24ff8f commit bd8d0b81d6df4b5c98076dbc39a4d4f1e5abb0fc Sam Hemelryk committed Apr 10, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/outputrenderers.php
@@ -2375,7 +2375,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 bd8d0b8

Please sign in to comment.