mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
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:
parent
44c0751bbf
commit
aa60291e12
11 changed files with 48 additions and 62 deletions
|
@ -113,7 +113,7 @@ foreach ($glossarys as $glossary) {
|
|||
$userid = $USER->id;
|
||||
}
|
||||
//Get html code for RSS link
|
||||
$rsslink = rss_get_link($context->id, $userid, "glossary", $glossary->id, $tooltiptext);
|
||||
$rsslink = rss_get_link($context->id, $userid, 'mod_glossary', $glossary->id, $tooltiptext);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -2603,7 +2603,7 @@ function glossary_extend_settings_navigation(settings_navigation $settings, navi
|
|||
|
||||
$string = get_string('rsstype','forum');
|
||||
|
||||
$url = new moodle_url(rss_get_url($PAGE->cm->context->id, $USER->id, 'glossary', $glossary->id));
|
||||
$url = new moodle_url(rss_get_url($PAGE->cm->context->id, $USER->id, 'mod_glossary', $glossary->id));
|
||||
$glossarynode->add($string, $url, settings_navigation::TYPE_SETTING, null, null, new pix_icon('i/rss', ''));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue