weblib MDL-25390 Minor fix of incorrect use of moodle_url object
authorSam Hemelryk <sam@moodle.com>
Wed, 24 Nov 2010 02:08:30 +0000 (02:08 +0000)
committerSam Hemelryk <sam@moodle.com>
Wed, 24 Nov 2010 02:08:30 +0000 (02:08 +0000)
lib/weblib.php

index 1678964..5fdd978 100644 (file)
@@ -2269,7 +2269,7 @@ function print_grade_menu($courseid, $name, $current, $includenograde=true, $ret
 
     $linkobject = '<span class="helplink"><img class="iconhelp" alt="'.$strscales.'" src="'.$OUTPUT->pix_url('help') . '" /></span>';
     $link = new moodle_url('/course/scales.php', array('id'=>$courseid, 'list'=>1));
-    $action = new popup_action('click', $link->url, 'ratingscales', array('height' => 400, 'width' => 500));
+    $action = new popup_action('click', $link, 'ratingscales', array('height' => 400, 'width' => 500));
     $output .= $OUTPUT->action_link($link, $linkobject, $action, array('title'=>$strscales));
 
     if ($return) {