MDL-43362 outputrenderers: Add bootstrap classes to errorbox.

This commit is contained in:
Kathrin Osswald 2018-02-26 13:02:14 +01:00
parent 1287039e62
commit 9d492637ec
2 changed files with 2 additions and 2 deletions

View File

@ -139,7 +139,7 @@ class tool_behat_renderer extends plugin_renderer_base {
$msg = get_string('wrongbehatsetup', 'tool_behat', $a);
// Error box including generic error string + specific error msg.
$html .= $this->output->box_start('box errorbox');
$html .= $this->output->box_start('box errorbox alert alert-danger');
$html .= html_writer::tag('div', $msg);
$html .= $this->output->box_end();

View File

@ -2797,7 +2797,7 @@ EOD;
$message .= '<p class="errormessage">' . get_string('installproblem', 'error') . '</p>';
//It is usually not possible to recover from errors triggered during installation, you may need to create a new database or use a different database prefix for new installation.
}
$output .= $this->box($message, 'errorbox', null, array('data-rel' => 'fatalerror'));
$output .= $this->box($message, 'errorbox alert alert-danger', null, array('data-rel' => 'fatalerror'));
if ($CFG->debugdeveloper) {
if (!empty($debuginfo)) {