From 9d492637ecf2eef52bd7d3ed2030c706ce509845 Mon Sep 17 00:00:00 2001 From: Kathrin Osswald Date: Mon, 26 Feb 2018 13:02:14 +0100 Subject: [PATCH] MDL-43362 outputrenderers: Add bootstrap classes to errorbox. --- admin/tool/behat/renderer.php | 2 +- lib/outputrenderers.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/tool/behat/renderer.php b/admin/tool/behat/renderer.php index 9bcda1ff6d6..bf2b7a10a62 100644 --- a/admin/tool/behat/renderer.php +++ b/admin/tool/behat/renderer.php @@ -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(); diff --git a/lib/outputrenderers.php b/lib/outputrenderers.php index 6a5800d6eac..b088e095874 100644 --- a/lib/outputrenderers.php +++ b/lib/outputrenderers.php @@ -2797,7 +2797,7 @@ EOD; $message .= '

' . get_string('installproblem', 'error') . '

'; //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)) {