MDL-19756 Simplified function call to help_button

This commit is contained in:
nicolasconnault
2009-08-06 01:42:49 +00:00
parent 008350b585
commit 2f838e179f
+1 -3
View File
@@ -3158,9 +3158,7 @@ function print_scale_menu_helpbutton($courseid, $scale, $return=false) {
// debugging('print_scale_menu_helpbutton() has been deprecated. Please change your code to use $OUTPUT->help_button($scaleselect).');
global $OUTPUT;
$helpbutton = help_button::make_scale_menu($courseid, $scale);
$output = $OUTPUT->help_button($helpbutton);
$output = $OUTPUT->help_button(help_button::make_scale_menu($courseid, $scale));
if ($return) {
return $output;