mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
15 lines
510 B
PHP
15 lines
510 B
PHP
<?php
|
|
|
|
if (empty($CFG->enablerssfeeds)) {
|
|
$options = array(0 => get_string('rssglobaldisabled', 'admin'));
|
|
$str = get_string('configenablerssfeeds', 'data').'<br />'.get_string('configenablerssfeedsdisabled2', 'admin');
|
|
|
|
} else {
|
|
$options = array(0=>get_string('no'), 1=>get_string('yes'));
|
|
$str = get_string('configenablerssfeeds', 'data');
|
|
}
|
|
$settings->add(new admin_setting_configselect('data_enablerssfeeds', get_string('enablerssfeeds', 'admin'),
|
|
$str, 0, $options));
|
|
|
|
|