Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9be14d2
)
MDL-30386 blog : saved a function call
author
Aparup Banerjee
<aparup@moodle.com>
Thu, 1 Dec 2011 04:03:31 +0000
(12:03 +0800)
committer
Aparup Banerjee
<aparup@moodle.com>
Thu, 1 Dec 2011 04:03:31 +0000
(12:03 +0800)
blog/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/blog/lib.php
b/blog/lib.php
index
9a407e9
..
06ed8ac
100644
(file)
--- 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))