Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-41635 Report: Added string to action link for display

  • Loading branch information...
commit da568835a5222acb82231a62a0e0c8c93458ee7e 1 parent 7da998a
@rajeshtaneja rajeshtaneja authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 report/loglive/lib.php
View
5 report/loglive/lib.php
@@ -38,8 +38,9 @@
function report_loglive_extend_navigation_course($navigation, $course, $context) {
global $CFG, $OUTPUT;
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));
- $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', ''));
+ $action = new action_link($url, $nodename, new popup_action('click', $url));
+ $navigation->add($nodename, $action, navigation_node::TYPE_SETTING, null, null, new pix_icon('i/report', ''));
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.