Added rss_get_url() to 1.5 to help support data module

This commit is contained in:
moodler
2006-03-10 09:05:02 +00:00
parent 3bf1bd27fc
commit 6e8070f46e
+11
View File
@@ -27,6 +27,17 @@ function rss_get_link($courseid, $userid, $modulename, $id, $tooltiptext='') {
}
function rss_get_url($courseid, $userid, $modulename, $id) {
global $CFG;
if ($CFG->slasharguments) {
$rsspath = "$CFG->wwwroot/rss/file.php/$courseid/$userid/$modulename/$id/rss.xml";
} else {
$rsspath = "$CFG->wwwroot/rss/file.php?file=/$courseid/$userid/$modulename/$id/rss.xml";
}
return $rsspath;
}
//This function prints the icon (from theme) with the link to rss/file.php
function rss_print_link($courseid, $userid, $modulename, $id, $tooltiptext='') {