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 16, 2012
1 parent 9ad535c commit 0064f3c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/outputrenderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2511,7 +2511,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 Expand Up @@ -2896,4 +2899,4 @@ public function footer() {}
* @param string $id
*/
public function heading($text, $level = 2, $classes = 'main', $id = null) {}
}
}

0 comments on commit 0064f3c

Please sign in to comment.