Skip to content

Commit

Permalink
MDL-41635 Report: Added string to action link for display
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Nov 27, 2013
1 parent 7da998a commit da56883
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions report/loglive/lib.php
Expand Up @@ -38,8 +38,9 @@
function report_loglive_extend_navigation_course($navigation, $course, $context) { function report_loglive_extend_navigation_course($navigation, $course, $context) {
global $CFG, $OUTPUT; global $CFG, $OUTPUT;
if (has_capability('report/loglive:view', $context)) { if (has_capability('report/loglive:view', $context)) {
$nodename = get_string('pluginname', 'report_loglive');
$url = new moodle_url('/report/loglive/index.php', array('id'=>$course->id, 'inpopup'=>1)); $url = new moodle_url('/report/loglive/index.php', array('id'=>$course->id, 'inpopup'=>1));
$action = new action_link($url, '', new popup_action('click', $url)); $action = new action_link($url, $nodename, new popup_action('click', $url));
$navigation->add(get_string('pluginname', 'report_loglive'), $action, navigation_node::TYPE_SETTING, null, null, new pix_icon('i/report', '')); $navigation->add($nodename, $action, navigation_node::TYPE_SETTING, null, null, new pix_icon('i/report', ''));
} }
} }

0 comments on commit da56883

Please sign in to comment.