MDL-32393 navigation: Fixed up issue when rendering action_link instances for the navigation

This commit is contained in:
Sam Hemelryk
2012-04-11 10:57:21 +12:00
parent 4b3ee4fc55
commit 5c2a2f209d
+4 -1
View File
@@ -2338,7 +2338,10 @@ EOD;
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();