mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
Merge branch 'MDL-50641-master' of git://github.com/danpoltawski/moodle
This commit is contained in:
commit
89875d2a8a
@ -81,6 +81,9 @@ function rss_get_link($contextid, $userid, $componentname, $id, $tooltiptext='')
|
||||
function rss_get_url($contextid, $userid, $componentname, $additionalargs) {
|
||||
global $CFG;
|
||||
require_once($CFG->libdir.'/filelib.php');
|
||||
if (empty($userid)) {
|
||||
$userid = guest_user()->id;
|
||||
}
|
||||
$usertoken = rss_get_token($userid);
|
||||
return get_file_url($contextid.'/'.$usertoken.'/'.$componentname.'/'.$additionalargs.'/rss.xml', null, 'rssfile');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user