You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
606 B
17 lines
606 B
2 years ago
|
<?php
|
||
|
|
||
|
defined('MOODLE_INTERNAL') || die;
|
||
|
|
||
|
if ($ADMIN->fulltree) {
|
||
|
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));
|
||
|
}
|