echo text_to_html($scale->description);
print_simple_box_end();
close_window_button();
+ print_footer('empty');
exit;
}
}
if (has_capability('moodle/course:managescales', $context)) {
echo "<p align=\"center\">(";
- print_string("scalestip");
+ print_string('scalestip2');
echo ")</p>";
}
}
close_window_button();
- exit;
+ print_footer('empty');
?>
$string['scalesstandard'] = 'Standard scales';
$string['scalestandard'] = 'Standard scale';
$string['scalestip'] = 'To create custom scales, use the \'Scales...\' link in your course administration menu.';
+$string['scalestip2'] = 'To create custom scales, click the Grades link in the course administration menu, then choose Edit, Scales.';
$string['schedule'] = 'Schedule';
$string['scheduledbackupsinactive'] = 'Scheduled backups haven\'t been enabled by the site admin';
$string['scheduledbackupstatus'] = 'Scheduled backup status';
$ratingsmenuused = false;
$ratingsformused = false;
if ($forum->assessed and isloggedin()) {
- if ($ratings->scale = make_grades_menu($forum->scale)) {
+ if ($scale = make_grades_menu($forum->scale)) {
+ $ratings =new object();
+ $ratings->scale = $scale;
$ratings->assesstimestart = $forum->assesstimestart;
$ratings->assesstimefinish = $forum->assesstimefinish;
$ratings->allow = $canrate;
}
}
-
$post->forum = $forum->id; // Add the forum id to the post object, later used by forum_print_post
$post->forumtype = $forum->type;