blocklib: MDL-19010 fix some minor problems with existing blocks.

This commit is contained in:
tjhunt
2009-06-05 08:28:45 +00:00
parent 81f4ff7241
commit f4d76b9cdf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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");
}
+1 -1
View File
@@ -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>';