Skip to content

Commit

Permalink
forum MDL-20739 Fixed bad conversion of html_select component
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Nov 4, 2009
1 parent ecf922b commit 6fe0605
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mod/forum/lib.php
Expand Up @@ -4169,7 +4169,9 @@ function forum_print_rating_menu($postid, $userid, $scale, $myrating=NULL) {
$strrate = get_string("rate", "forum");
}
$scale = array(FORUM_UNSET_POST_RATING => $strrate.'...') + $scale;
echo $OUTPUT->select(html_select::make($scale, $postid, $myrating, false)->add_class('forumpostratingmenu'));
$select = html_select::make($scale, $postid, $myrating, false);
$select->add_class('forumpostratingmenu');
echo $OUTPUT->select($select);
}

/**
Expand Down

0 comments on commit 6fe0605

Please sign in to comment.