From f4d76b9cdf43633b66d37e434ee1a2dfd8d43f41 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 5 Jun 2009 08:28:45 +0000 Subject: [PATCH] blocklib: MDL-19010 fix some minor problems with existing blocks. --- blocks/online_users/block_online_users.php | 2 +- blocks/rss_client/block_rss_client.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/blocks/online_users/block_online_users.php b/blocks/online_users/block_online_users.php index 229f7b004d..33923ea317 100644 --- a/blocks/online_users/block_online_users.php +++ b/blocks/online_users/block_online_users.php @@ -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"); } diff --git a/blocks/rss_client/block_rss_client.php b/blocks/rss_client/block_rss_client.php index 4bec6598d2..0b3b9f74c5 100644 --- a/blocks/rss_client/block_rss_client.php +++ b/blocks/rss_client/block_rss_client.php @@ -128,7 +128,7 @@ 'sesskey' => sesskey(), 'blockaction' => 'config', 'currentaction' => 'configblock', - 'id' => $this->courseid, + 'id' => $this->page->course->id, 'section' => 'rss' )); $output .= '
'. get_string('feedsconfigurenewinstance', 'block_rss_client') .'
'; -- 2.39.5