From ee4e66bf531cd75732eadc0058efdccf29b5d4fe Mon Sep 17 00:00:00 2001 From: FilipBenco Date: Tue, 8 Oct 2013 21:19:16 +0200 Subject: [PATCH] MDL-41635 Reports: Added missing string in loglive reports Under course administration navigation log live doesn't appear or appear with empty string (in some themes), this is happening because text passed is empty. --- report/loglive/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report/loglive/lib.php b/report/loglive/lib.php index b233d266e38..be4edf243d3 100644 --- a/report/loglive/lib.php +++ b/report/loglive/lib.php @@ -39,7 +39,7 @@ function report_loglive_extend_navigation_course($navigation, $course, $context) global $CFG, $OUTPUT; if (has_capability('report/loglive:view', $context)) { $url = new moodle_url('/report/loglive/index.php', array('id'=>$course->id, 'inpopup'=>1)); - $action = new action_link($url, get_string('pluginname', 'report_loglive'), new popup_action('click', $url)); - $navigation->add('', $action, navigation_node::TYPE_SETTING, null, null, new pix_icon('i/report', '')); + $action = new action_link($url, '', new popup_action('click', $url)); + $navigation->add(get_string('pluginname', 'report_loglive'), $action, navigation_node::TYPE_SETTING, null, null, new pix_icon('i/report', '')); } }