rss MDL-23391 alter the rss urls to be component names ie mod_forum instead of just module name ie forum

This commit is contained in:
Andrew Davis 2010-07-19 10:57:52 +00:00
parent 44c0751bbf
commit aa60291e12
11 changed files with 48 additions and 62 deletions

View file

@ -258,7 +258,7 @@ if ($generalforums) {
$tooltiptext = get_string('rsssubscriberssposts', 'forum');
}
//Get html code for RSS link
$row[] = rss_get_link($context->id, $USER->id, 'forum', $forum->id, $tooltiptext);
$row[] = rss_get_link($context->id, $USER->id, 'mod_forum', $forum->id, $tooltiptext);
} else {
$row[] = ' ';
}
@ -388,7 +388,7 @@ if ($course->id != SITEID) { // Only real courses have learning forums
$tooltiptext = get_string('rsssubscriberssposts', 'forum');
}
//Get html code for RSS link
$row[] = rss_get_link($context->id, $USER->id, 'forum', $forum->id, $tooltiptext);
$row[] = rss_get_link($context->id, $USER->id, 'mod_forum', $forum->id, $tooltiptext);
} else {
$row[] = ' ';
}

View file

@ -7520,7 +7520,7 @@ function forum_extend_settings_navigation(settings_navigation $settingsnav, navi
} else {
$userid = $USER->id;
}
$url = new moodle_url(rss_get_url($PAGE->cm->context->id, $userid, "forum", $forumobject->id));
$url = new moodle_url(rss_get_url($PAGE->cm->context->id, $userid, "mod_forum", $forumobject->id));
$forumnode->add($string, $url, settings_navigation::TYPE_SETTING, null, null, new pix_icon('i/rss', ''));
}
}