blocklib: MDL-19010 fix some minor problems with existing blocks.
This commit is contained in:
@@ -111,7 +111,7 @@ class block_online_users extends block_base {
|
||||
$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");
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
'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>';
|
||||
|
||||
Reference in New Issue
Block a user