]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19756 Simplified function call to help_button
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 01:42:49 +0000 (01:42 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 01:42:49 +0000 (01:42 +0000)
lib/deprecatedlib.php

index e26d86398588217ab2f73f14608d95df28e58e4b..f7f44e465e2ba38f078736b18ddfdc838788c1b3 100644 (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;