From 0f4c6067e544a539148b61f93c07b27374a2fe1e Mon Sep 17 00:00:00 2001 From: Aparup Banerjee Date: Thu, 1 Dec 2011 12:03:31 +0800 Subject: [PATCH] MDL-30386 blog : saved a function call --- blog/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog/lib.php b/blog/lib.php index 9a407e9c511d1..06ed8acc3e65c 100644 --- a/blog/lib.php +++ b/blog/lib.php @@ -479,7 +479,7 @@ function blog_get_options_for_user(stdClass $user=null) { ); } } - if (has_capability('moodle/blog:view', $sitecontext) && $CFG->enablerssfeeds) { + if ($canview && $CFG->enablerssfeeds) { $options['rss'] = array( 'string' => get_string('rssfeed', 'blog'), 'link' => new moodle_url(rss_get_url($sitecontext->id, $USER->id, 'blog', 'user/'.$user->id))