From 5da8e2ee1cf903a00ca1d560b64978140d05c049 Mon Sep 17 00:00:00 2001
From: nicolasconnault <nicolasconnault>
Date: Mon, 10 Aug 2009 03:41:44 +0000
Subject: [PATCH] MDL-19793 Converted calls to popup_form()

---
 calendar/view.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/calendar/view.php b/calendar/view.php
index d40a905a3f..6056d1ced5 100644
--- a/calendar/view.php
+++ b/calendar/view.php
@@ -601,7 +601,7 @@ function calendar_show_upcoming_events($courses, $groups, $users, $futuredays, $
 }
 
 function calendar_course_filter_selector($getvars = '') {
-    global $USER, $SESSION;
+    global $USER, $SESSION, $OUTPUT;
 
     if (empty($USER->id) or isguest()) {
         return '';
@@ -625,9 +625,9 @@ function calendar_course_filter_selector($getvars = '') {
     } else {
         $selected = '';
     }
-
-    return popup_form(CALENDAR_URL.'set.php?var=setcourse&amp;'.$getvars.'&amp;id=',
-                       $courseoptions, 'cal_course_flt', $selected, '', '', '', true);
+    $select = moodle_select::make_popup_form(CALENDAR_URL.'set.php?var=setcourse&'.$getvars, 'id', $courseoptions, 'cal_courses_flt', $selected);
+    $select->nothinglabel = false;
+    return $OUTPUT->select($select);
 }
 
 ?>
-- 
2.39.5