mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-20787 final switch to new $OUTPUT->pix_url() - yay!
This commit is contained in:
parent
cb1e046d6e
commit
b5d0cafc6f
157 changed files with 576 additions and 576 deletions
|
@ -560,12 +560,12 @@ function log_report_extend_navigation($navigation, $course, $context) {
|
|||
global $CFG, $OUTPUT;
|
||||
if (has_capability('coursereport/log:view', $context)) {
|
||||
$url = new moodle_url($CFG->wwwroot.'/course/report/log/index.php', array('id'=>$course->id));
|
||||
$navigation->add(get_string('log:view', 'coursereport_log'), $url, navigation_node::TYPE_SETTING, null, null, $OUTPUT->old_icon_url('i/report'));
|
||||
$navigation->add(get_string('log:view', 'coursereport_log'), $url, navigation_node::TYPE_SETTING, null, null, $OUTPUT->pix_url('i/report'));
|
||||
}
|
||||
if (has_capability('coursereport/log:viewlive', $context)) {
|
||||
$livelogs = get_string('livelogs');
|
||||
$link = html_link::make('/course/report/log/live.php?id='. $course->id, $livelogs);
|
||||
$link->add_action(new popup_action('click', $link->url, 'livelog', array('height' => 500, 'width' => 800)));
|
||||
$navigation->add($livelogs, $link, navigation_node::TYPE_SETTING, null, null, $OUTPUT->old_icon_url('i/report'));
|
||||
$navigation->add($livelogs, $link, navigation_node::TYPE_SETTING, null, null, $OUTPUT->pix_url('i/report'));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue