mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
theme MDL-20204 Fixed regression with theme selector in category edit form
This commit is contained in:
parent
4e5c0484fa
commit
e0cd4f685c
@ -28,9 +28,11 @@ class editcategory_form extends moodleform {
|
|||||||
$mform->addElement('editor', 'description_editor', get_string('description'), null, $editoroptions);
|
$mform->addElement('editor', 'description_editor', get_string('description'), null, $editoroptions);
|
||||||
$mform->setType('description_editor', PARAM_RAW);
|
$mform->setType('description_editor', PARAM_RAW);
|
||||||
if (!empty($CFG->allowcategorythemes)) {
|
if (!empty($CFG->allowcategorythemes)) {
|
||||||
$themes=array();
|
$themes = array(''=>get_string('forceno'));
|
||||||
$themes[''] = get_string('forceno');
|
$allthemes = get_list_of_themes();
|
||||||
$themes += get_list_of_themes();
|
foreach ($allthemes as $key=>$theme) {
|
||||||
|
$themes[$key] = $theme->name;
|
||||||
|
}
|
||||||
$mform->addElement('select', 'theme', get_string('forcetheme'), $themes);
|
$mform->addElement('select', 'theme', get_string('forcetheme'), $themes);
|
||||||
}
|
}
|
||||||
$mform->setHelpButton('description_editor', array('writing', 'richtext2'), false, 'editorhelpbutton');
|
$mform->setHelpButton('description_editor', array('writing', 'richtext2'), false, 'editorhelpbutton');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user