mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 13:38:32 +01:00
17 lines
606 B
PHP
17 lines
606 B
PHP
<?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));
|
|
}
|