mirror of
https://github.com/moodle/moodle.git
synced 2025-05-05 07:48:21 +02:00
Now filename is fixed to rss.xml. SC#23
This commit is contained in:
parent
a0fb9e8e65
commit
c5152930f5
@ -39,7 +39,7 @@
|
|||||||
$userid = (int)$args[1];
|
$userid = (int)$args[1];
|
||||||
$modulename = clean_param($args[2], PARAM_FILE);
|
$modulename = clean_param($args[2], PARAM_FILE);
|
||||||
$instance = (int)$args[3];
|
$instance = (int)$args[3];
|
||||||
$filename = clean_param($args[4], PARAM_FILE);
|
$filename = 'rss.xml';
|
||||||
|
|
||||||
if (!$course = get_record("course", "id", $courseid)) {
|
if (!$course = get_record("course", "id", $courseid)) {
|
||||||
not_found();
|
not_found();
|
||||||
@ -69,7 +69,7 @@
|
|||||||
not_found();
|
not_found();
|
||||||
}
|
}
|
||||||
|
|
||||||
$pathname = $CFG->dataroot.'/rss/'.$modulename.'/'.$filename;
|
$pathname = $CFG->dataroot.'/rss/'.$modulename.'/'.$instance.'.xml';
|
||||||
|
|
||||||
//Check that file exists
|
//Check that file exists
|
||||||
if (!file_exists($pathname)) {
|
if (!file_exists($pathname)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user