Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
f1b608bb
Commit
f1b608bb
authored
Sep 02, 2015
by
Eloy Lafuente (stronk7)
Browse files
Merge branch 'MDL-50641-28' of
git://github.com/danpoltawski/moodle
into MOODLE_28_STABLE
parents
2583cc53
5c82c8e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/rsslib.php
View file @
f1b608bb
...
...
@@ -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'
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment