Provide message/warning/error box abstraction
[lhc/web/wiklou.git] / includes / exception / MWException.php
index 8c1f8dc..c633431 100644 (file)
@@ -102,7 +102,7 @@ class MWException extends Exception {
                } else {
                        $logId = WebRequest::getRequestId();
                        $type = static::class;
-                       return "<div class=\"errorbox\">" .
+                       return Html::errorBox(
                        '[' . $logId . '] ' .
                        gmdate( 'Y-m-d H:i:s' ) . ": " .
                        $this->msg( "internalerror-fatal-exception",
@@ -110,7 +110,7 @@ class MWException extends Exception {
                                $type,
                                $logId,
                                MWExceptionHandler::getURL( $this )
-                       ) . "</div>\n" .
+                       ) ) .
                        "<!-- Set \$wgShowExceptionDetails = true; " .
                        "at the bottom of LocalSettings.php to show detailed " .
                        "debugging information. -->";