Merge branch 'wip-MDL-27825-MOODLE_20_STABLE' of git://github.com/samhemelryk/moodle into MOODLE_20_STABLE

This commit is contained in:
Eloy Lafuente (stronk7)
2011-06-14 12:30:55 +02:00
+2 -2
View File
@@ -95,7 +95,7 @@ foreach ($themes as $themename => $themedir) {
//obsoleted or broken theme, just skip for now
continue;
}
if (!$CFG->themedesignermode && $theme->hidefromselector) {
if (empty($CFG->themedesignermode) && $theme->hidefromselector) {
// The theme doesn't want to be shown in the theme selector and as theme
// designer mode is switched off we will respect that decision.
continue;
@@ -146,4 +146,4 @@ foreach ($themes as $themename => $themedir) {
echo html_writer::table($table);
echo $OUTPUT->footer();
echo $OUTPUT->footer();