mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Now message forum RSS Feeds are using the category. Useful under
some RSS agregators able to group messages. Credits go to Dmitry Pupinin. Bug 3654 (http://moodle.org/bugs/bug.php?op=show&bugid=3654) Merged from MOODLE_15_STABLE
This commit is contained in:
parent
6d6002a07f
commit
bcf306f6d8
1 changed files with 2 additions and 0 deletions
|
@ -225,6 +225,7 @@
|
||||||
|
|
||||||
if ($recs = get_records_sql ("SELECT p.id AS postid,
|
if ($recs = get_records_sql ("SELECT p.id AS postid,
|
||||||
d.id AS discussionid,
|
d.id AS discussionid,
|
||||||
|
d.name AS discussionname,
|
||||||
u.id AS userid,
|
u.id AS userid,
|
||||||
u.firstname AS userfirstname,
|
u.firstname AS userfirstname,
|
||||||
u.lastname AS userlastname,
|
u.lastname AS userlastname,
|
||||||
|
@ -252,6 +253,7 @@
|
||||||
foreach ($recs as $rec) {
|
foreach ($recs as $rec) {
|
||||||
unset($item);
|
unset($item);
|
||||||
unset($user);
|
unset($user);
|
||||||
|
$item->category = $rec->discussionname;
|
||||||
$item->title = $rec->postsubject;
|
$item->title = $rec->postsubject;
|
||||||
$user->firstname = $rec->userfirstname;
|
$user->firstname = $rec->userfirstname;
|
||||||
$user->lastname = $rec->userlastname;
|
$user->lastname = $rec->userlastname;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue