Skip to content

Commit

Permalink
MDL-19756 Simplified function call to help_button
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 6, 2009
1 parent 008350b commit 2f838e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/deprecatedlib.php
Expand Up @@ -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;
Expand Down

0 comments on commit 2f838e1

Please sign in to comment.