From 0b280bbaa05b51f6d7413ae357e04ce61b4eb076 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Thu, 6 Aug 2009 00:34:48 +0000 Subject: [PATCH] MDL-19794 Upgraded calls to choose_from_menu_nested --- course/report/log/lib.php | 4 +++- course/report/participation/index.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/course/report/log/lib.php b/course/report/log/lib.php index c91ac2520f..45571572b3 100644 --- a/course/report/log/lib.php +++ b/course/report/log/lib.php @@ -221,7 +221,9 @@ function print_mnet_log_selector_form($hostid, $course, $selecteduser=0, $select echo "\n"; if (has_capability('coursereport/log:view', $sitecontext) && $showcourses) { $cid = empty($course->id)? '1' : $course->id; - choose_from_menu_nested($dropdown, "host_course", $hostid.'/'.$cid, ""); + $select = moodle_select::make($dropdown, "host_course", $hostid.'/'.$cid); + $select->nested = true; + echo $OUTPUT->select($select); } else { $courses = array(); $courses[$course->id] = $course->fullname . ((empty($course->category)) ? ' ('.get_string('site').') ' : ''); diff --git a/course/report/participation/index.php b/course/report/participation/index.php index 26a2dc6aac..1a63b90e29 100644 --- a/course/report/participation/index.php +++ b/course/report/participation/index.php @@ -117,7 +117,9 @@ echo '
'."\n". ''."\n"; echo ''."\n"; - choose_from_menu_nested($instanceoptions,'instanceid',$instanceid); + $select = moodle_select::make($instanceoptions, 'instanceid', $instanceid); + $select->nested = true; + echo $OUTPUT->select($select); echo ''."\n"; choose_from_menu($timeoptions,'timefrom',$timefrom); echo ''."\n"; -- 2.39.5