]> git.mjollnir.org Git - moodle.git/commitdiff
Now filename is fixed to rss.xml. SC#23
authorstronk7 <stronk7>
Wed, 15 Dec 2004 23:21:25 +0000 (23:21 +0000)
committerstronk7 <stronk7>
Wed, 15 Dec 2004 23:21:25 +0000 (23:21 +0000)
rss/file.php

index 5c918e050f46a641c51ce4e48cfd74dc42e955d6..d571db2ceb3dca935713e6947eac70efbf3bfe0e 100644 (file)
@@ -39,7 +39,7 @@
     $userid     = (int)$args[1];
     $modulename = clean_param($args[2], PARAM_FILE);
     $instance   = (int)$args[3];
-    $filename   = clean_param($args[4], PARAM_FILE);
+    $filename   = 'rss.xml';
     
     if (!$course = get_record("course", "id", $courseid)) {
         not_found();
@@ -69,7 +69,7 @@
         not_found();
     }
 
-    $pathname = $CFG->dataroot.'/rss/'.$modulename.'/'.$filename;
+    $pathname = $CFG->dataroot.'/rss/'.$modulename.'/'.$instance.'.xml';
 
     //Check that file exists
     if (!file_exists($pathname)) {