From bd8d0b81d6df4b5c98076dbc39a4d4f1e5abb0fc Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Wed, 11 Apr 2012 10:56:49 +1200 Subject: [PATCH] MDL-32393 navigation: Fixed up issue when rendering action_link instances for the navigation --- lib/outputrenderers.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 7288f57cfa8..550c567ee2d 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -2375,7 +2375,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();