mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
MDL-19808 Upgraded calls to choose_from_menu
This commit is contained in:
parent
324265457c
commit
b46eec3bba
@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -333,7 +333,7 @@ function forum_print_big_search_form($course) {
|
||||
echo '<tr>';
|
||||
echo '<td class="c0"><label for="menuforumid">'.get_string('searchwhichforums', 'forum').'</label></td>';
|
||||
echo '<td class="c1">';
|
||||
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 '</td>';
|
||||
echo '</tr>';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user