$minutes = floor($timetoshowusers/60);
// Verify if we can see the list of users, if not just print number of users
- if (!has_capability('block/online_users:viewlist', $blockcontext)) {
+ if (!has_capability('block/online_users:viewlist', $context)) {
if (!$usercount = $DB->count_records_sql($csql, $params)) {
$usercount = get_string("none");
}
'sesskey' => sesskey(),
'blockaction' => 'config',
'currentaction' => 'configblock',
- 'id' => $this->courseid,
+ 'id' => $this->page->course->id,
'section' => 'rss'
));
$output .= '<div class="info"><a title="'. get_string('feedsconfigurenewinstance', 'block_rss_client') .'" href="'. $script.'">'. get_string('feedsconfigurenewinstance', 'block_rss_client') .'</a></div>';