Skip to content

Commit

Permalink
Merge branch 'wip-MDL-27867-m21' of git://github.com/samhemelryk/mood…
Browse files Browse the repository at this point in the history
…le into MOODLE_21_STABLE
  • Loading branch information
Aparup Banerjee committed Oct 3, 2011
2 parents 1e6c738 + 214784a commit 30ed26a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion course/edit_form.php
Expand Up @@ -176,7 +176,9 @@ function definition() {
$themes=array();
$themes[''] = get_string('forceno');
foreach ($themeobjects as $key=>$theme) {
$themes[$key] = $theme->name;
if (empty($theme->hidefromselector)) {
$themes[$key] = $theme->name;
}
}
$mform->addElement('select', 'theme', get_string('forcetheme'), $themes);
}
Expand Down
4 changes: 3 additions & 1 deletion course/editcategory_form.php
Expand Up @@ -41,7 +41,9 @@ function definition() {
$themes = array(''=>get_string('forceno'));
$allthemes = get_list_of_themes();
foreach ($allthemes as $key=>$theme) {
$themes[$key] = $theme->name;
if (empty($theme->hidefromselector)) {
$themes[$key] = $theme->name;
}
}
$mform->addElement('select', 'theme', get_string('forcetheme'), $themes);
}
Expand Down

0 comments on commit 30ed26a

Please sign in to comment.