Skip to content

Commit

Permalink
MDL-30386 blog : saved a function call
Browse files Browse the repository at this point in the history
  • Loading branch information
Aparup Banerjee committed Dec 1, 2011
1 parent 9be14d2 commit 0f4c606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blog/lib.php
Expand Up @@ -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))
Expand Down

0 comments on commit 0f4c606

Please sign in to comment.