user MDL-22382 Fixed incorrect use of get_list_of_themes in editlib.php

This commit is contained in:
Sam Hemelryk
2010-05-12 09:44:45 +00:00
parent 2dc8831300
commit 36798745fb
+6 -1
View File
@@ -223,7 +223,12 @@ function useredit_shared_definition(&$mform, $editoroptions = null) {
if (!empty($CFG->allowuserthemes)) {
$choices = array();
$choices[''] = get_string('default');
$choices += get_list_of_themes();
$themes = get_list_of_themes();
foreach ($themes as $key=>$theme) {
if (empty($theme->hidefromselector)) {
$choices[$key] = $theme->name;
}
}
$mform->addElement('select', 'theme', get_string('preferredtheme'), $choices);
$mform->setAdvanced('theme');
}