1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 09:55:33 +02:00

MDL-68893 mod_data: use own RSS feed string.

AMOS BEGIN
 CPY [rsstype,core],[rsstype,mod_data]
AMOS END
This commit is contained in:
Luca Bösch 2020-06-02 10:22:23 +02:00
parent 9dabd071fe
commit ac3a15c287
2 changed files with 2 additions and 1 deletions
mod/data

@ -357,6 +357,7 @@ $string['rows'] = 'rows';
$string['rssglobaldisabled'] = 'Disabled. See site configuration variables.';
$string['rsstemplate'] = 'RSS template';
$string['rsstitletemplate'] = 'RSS title template';
$string['rsstype'] = 'RSS feed for this activity';
$string['save'] = 'Save';
$string['saveandadd'] = 'Save and add another';
$string['saveandview'] = 'Save and view';

@ -3635,7 +3635,7 @@ function data_extend_settings_navigation(settings_navigation $settings, navigati
if (!empty($CFG->enablerssfeeds) && !empty($CFG->data_enablerssfeeds) && $data->rssarticles > 0) {
require_once("$CFG->libdir/rsslib.php");
$string = get_string('rsstype','forum');
$string = get_string('rsstype', 'data');
$url = new moodle_url(rss_get_url($PAGE->cm->context->id, $USER->id, 'mod_data', $data->id));
$datanode->add($string, $url, settings_navigation::TYPE_SETTING, null, null, new pix_icon('i/rss', ''));