Permalink
Browse files

MDL-35156 remove references to non-existant options

  • Loading branch information...
1 parent 9815783 commit 43b135e5989ca1b9194e3b44e43a2adf8e79f2b6 @danmarsden danmarsden committed Sep 3, 2012
Showing with 3 additions and 7 deletions.
  1. +2 −4 grade/grading/form/guide/lib.php
  2. +1 −3 grade/grading/form/guide/preview.php
@@ -872,10 +872,8 @@ public function render_grading_element($page, $gradingformelement) {
$html .= html_writer::tag('div', get_string('restoredfromdraft', 'gradingform_guide'),
array('class' => 'gradingform_guide-restored'));
}
- if (!empty($options['showdescriptionteacher'])) {
- $html .= html_writer::tag('div', $this->get_controller()->get_formatted_description(),
- array('class' => 'gradingform_guide-description'));
- }
+ $html .= html_writer::tag('div', $this->get_controller()->get_formatted_description(),
+ array('class' => 'gradingform_guide-description'));
$html .= $this->get_controller()->get_renderer($page)->display_guide($criteria, $comments, $options, $mode,
$gradingformelement->getName(), $value, $this->validationerrors);
return $html;
@@ -49,8 +49,6 @@
echo $OUTPUT->header();
echo $OUTPUT->heading($title);
-if (!empty($options['showdescriptionstudent'])) {
- echo $OUTPUT->box($controller->get_formatted_description(), 'gradingform_guide-description');
-}
+echo $OUTPUT->box($controller->get_formatted_description(), 'gradingform_guide-description');
echo $controller->render_preview($PAGE);
echo $OUTPUT->footer();

0 comments on commit 43b135e

Please sign in to comment.