From 5c2a2f209d4e16e9107c2d32bc8185a9dfb2f93b 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 79af3aaaea9..3bf0d05a2da 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -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();