mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
MDL-70621 mod_glossary: use glossary rsstype string.
This commit is contained in:
parent
55ab2bce55
commit
f37dbcc15b
@ -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', ''));
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user