Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'wip-MDL-27867-m21' of git://github.com/samhemelryk/mood…

…le into MOODLE_21_STABLE
  • Loading branch information...
commit 30ed26a57615a539f74c2e257e3a65941a459235 2 parents 1e6c738 + 214784a
@nebgor nebgor authored
Showing with 6 additions and 2 deletions.
  1. +3 −1 course/edit_form.php
  2. +3 −1 course/editcategory_form.php
View
4 course/edit_form.php
@@ -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);
}
View
4 course/editcategory_form.php
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.