Skip to content

Commit

Permalink
MDL-43362 outputrenderers: Add bootstrap classes to errorbox.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathrin84 committed Mar 9, 2018
1 parent 1287039 commit 9d49263
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/tool/behat/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function render_error($msg) {
$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();

Expand Down
2 changes: 1 addition & 1 deletion lib/outputrenderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2797,7 +2797,7 @@ public function fatal_error($message, $moreinfourl, $link, $backtrace, $debuginf
$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)) {
Expand Down

0 comments on commit 9d49263

Please sign in to comment.