Permalink
Browse files

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

…le into MOODLE_23_STABLE
  • Loading branch information...
2 parents b6bfe3b + c9b3e9e commit 48c8137388dff4156f7dadae34153df1ad0cd134 @stronk7 stronk7 committed Apr 30, 2013
Showing with 2 additions and 6 deletions.
  1. +2 −6 course/renderer.php
View
@@ -191,18 +191,14 @@ public function course_modchooser($modules, $course) {
$formcontent .= html_writer::start_tag('div', array('class' => 'alloptions'));
// Activities
- $activities = array_filter($modules, function($mod) {
- return ($mod->archetype !== MOD_ARCHETYPE_RESOURCE && $mod->archetype !== MOD_ARCHETYPE_SYSTEM);
- });
+ $activities = array_filter($modules, create_function('$mod', 'return ($mod->archetype !== MOD_ARCHETYPE_RESOURCE && $mod->archetype !== MOD_ARCHETYPE_SYSTEM);'));
if (count($activities)) {
$formcontent .= $this->course_modchooser_title('activities');
$formcontent .= $this->course_modchooser_module_types($activities);
}
// Resources
- $resources = array_filter($modules, function($mod) {
- return ($mod->archetype === MOD_ARCHETYPE_RESOURCE);
- });
+ $resources = array_filter($modules, create_function('$mod', 'return ($mod->archetype === MOD_ARCHETYPE_RESOURCE);'));
if (count($resources)) {
$formcontent .= $this->course_modchooser_title('resources');
$formcontent .= $this->course_modchooser_module_types($resources);

0 comments on commit 48c8137

Please sign in to comment.