MDL-70621 mod_glossary: use glossary rsstype string.

This commit is contained in:
Luca Bösch 2021-01-13 11:01:25 +01:00
parent 55ab2bce55
commit f37dbcc15b
2 changed files with 2 additions and 2 deletions

View File

@ -3191,7 +3191,7 @@ function glossary_extend_settings_navigation(settings_navigation $settings, navi
if (!empty($CFG->enablerssfeeds) && !empty($CFG->glossary_enablerssfeeds) && $glossary->rsstype && $glossary->rssarticles && has_capability('mod/glossary:view', $PAGE->cm->context)) {
require_once("$CFG->libdir/rsslib.php");
$string = get_string('rsstype','forum');
$string = get_string('rsstype', 'glossary');
$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', ''));

View File

@ -111,7 +111,7 @@ class mod_glossary_mod_form extends moodleform_mod {
$choices[0] = get_string('none');
$choices[1] = get_string('withauthor', 'glossary');
$choices[2] = get_string('withoutauthor', 'glossary');
$mform->addElement('select', 'rsstype', get_string('rsstype'), $choices);
$mform->addElement('select', 'rsstype', get_string('rsstype', 'glossary'), $choices);
$mform->addHelpButton('rsstype', 'rsstype', 'glossary');
$choices = array();