]> git.mjollnir.org Git - moodle.git/commitdiff
Include course in RSS feed name
authormoodler <moodler>
Sun, 26 Mar 2006 15:57:37 +0000 (15:57 +0000)
committermoodler <moodler>
Sun, 26 Mar 2006 15:57:37 +0000 (15:57 +0000)
mod/data/rsslib.php

index 09eeda201cf8330a94dca0bfb741fb6521b58206..8451ee7de394ee1b507304fbc7c5fad213de3144 100644 (file)
                             
                             array_push($items, $item);
                         }
+
+                        $course = get_record('course', 'id', $data->course);
                         
                         // First all rss feeds common headers.
-                        $header = rss_standard_header(format_string($data->name,true),
+                        $header = rss_standard_header($course->shortname.': '.format_string($data->name,true),
                                                       $CFG->wwwroot."/mod/data/view.php?d=".$data->id,
                                                       format_string($data->intro,true));