From df8674d26ea3aaadff4c23a3035b9ca412296e32 Mon Sep 17 00:00:00 2001 From: dg711 <devang.only@gmail.com> Date: Sat, 27 Feb 2016 15:49:10 +0530 Subject: [PATCH] MDL-41648 grade: Remove 'error' parameter in grading notification divs --- grade/grading/form/guide/guideeditor.php | 2 +- grade/grading/form/rubric/rubriceditor.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;