Skip to content

Commit

Permalink
MDL-32393 navigation: Fixed up issue when rendering action_link insta…
Browse files Browse the repository at this point in the history
…nces for the navigation
  • Loading branch information
Sam Hemelryk committed Apr 10, 2012
1 parent 4b3ee4f commit 5c2a2f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/outputrenderers.php
Expand Up @@ -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();
Expand Down

0 comments on commit 5c2a2f2

Please sign in to comment.