From: dg711 Date: Sat, 27 Feb 2016 10:19:10 +0000 (+0530) Subject: MDL-41648 grade: Remove 'error' parameter in grading notification divs X-Git-Tag: v3.1.0-beta~409^2 X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=commitdiff_plain;h=df8674d26ea3aaadff4c23a3035b9ca412296e32 MDL-41648 grade: Remove 'error' parameter in grading notification divs --- diff --git a/grade/grading/form/guide/guideeditor.php b/grade/grading/form/guide/guideeditor.php index 153a7705079..a366e94e16f 100644 --- a/grade/grading/form/guide/guideeditor.php +++ b/grade/grading/form/guide/guideeditor.php @@ -137,7 +137,7 @@ class moodlequickform_guideeditor extends HTML_QuickForm_input { $html .= $renderer->display_regrade_confirmation($this->getName(), $this->regradeconfirmation, $data['regrade']); } if ($this->validationerrors) { - $html .= html_writer::div($renderer->notification($this->validationerrors, 'error'), '', array('role' => 'alert')); + $html .= html_writer::div($renderer->notification($this->validationerrors), '', array('role' => 'alert')); } $html .= $renderer->display_guide($data['criteria'], $data['comments'], $data['options'], $mode, $this->getName()); return $html; diff --git a/grade/grading/form/rubric/rubriceditor.php b/grade/grading/form/rubric/rubriceditor.php index 533e81e5994..392ff321552 100644 --- a/grade/grading/form/rubric/rubriceditor.php +++ b/grade/grading/form/rubric/rubriceditor.php @@ -141,7 +141,7 @@ class MoodleQuickForm_rubriceditor extends HTML_QuickForm_input { $html .= $renderer->display_regrade_confirmation($this->getName(), $this->regradeconfirmation, $data['regrade']); } if ($this->validationerrors) { - $html .= html_writer::div($renderer->notification($this->validationerrors, 'error'), '', array('role' => 'alert')); + $html .= html_writer::div($renderer->notification($this->validationerrors), '', array('role' => 'alert')); } $html .= $renderer->display_rubric($data['criteria'], $data['options'], $mode, $this->getName()); return $html;