From: nicolasconnault Date: Thu, 6 Aug 2009 01:42:49 +0000 (+0000) Subject: MDL-19756 Simplified function call to help_button X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2f838e179f1bf4a6c6790345798d71e7cdf262ad;p=moodle.git MDL-19756 Simplified function call to help_button --- diff --git a/lib/deprecatedlib.php b/lib/deprecatedlib.php index e26d863985..f7f44e465e 100644 --- a/lib/deprecatedlib.php +++ b/lib/deprecatedlib.php @@ -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;