From b46eec3bbad830b7eac2bd2ef3d75174e45d1dc8 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Tue, 18 Aug 2009 00:11:38 +0000 Subject: [PATCH] MDL-19808 Upgraded calls to choose_from_menu --- mod/forum/lib.php | 4 ++-- mod/forum/search.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index d8d6348c1f4..3cc92d299b5 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -4107,7 +4107,7 @@ function forum_get_ratings_summary($postid, $scale, $ratings=NULL) { function forum_print_rating_menu($postid, $userid, $scale, $myrating=NULL) { static $strrate; - global $DB; + global $DB, $OUTPUT; if (is_null($myrating)) { if (!$rating = $DB->get_record("forum_ratings", array("userid" => $userid, "post" => $postid))) { @@ -4121,7 +4121,7 @@ function forum_print_rating_menu($postid, $userid, $scale, $myrating=NULL) { $strrate = get_string("rate", "forum"); } $scale = array(FORUM_UNSET_POST_RATING => $strrate.'...') + $scale; - choose_from_menu($scale, $postid, $myrating, '', '', '0', false, false, 0, '', false, false, 'forumpostratingmenu'); + echo $OUTPUT->select(html_select::make($scale, $postid, $myrating, false)->add_class('forumpostratingmenu')); } /** diff --git a/mod/forum/search.php b/mod/forum/search.php index 381aa5c33fc..afb09e02692 100644 --- a/mod/forum/search.php +++ b/mod/forum/search.php @@ -333,7 +333,7 @@ function forum_print_big_search_form($course) { echo ''; echo ''; echo ''; - choose_from_menu(forum_menu_list($course), 'forumid', '', get_string('allforums', 'forum'), ''); + echo $OUTPUT->select(html_select::make(forum_menu_list($course), 'forumid', '', get_string('allforums', 'forum'))); echo ''; echo '';