diff --git a/phpBB/phpbb/event/kernel_exception_subscriber.php b/phpBB/phpbb/event/kernel_exception_subscriber.php index 527b863359..3c7375dadf 100644 --- a/phpBB/phpbb/event/kernel_exception_subscriber.php +++ b/phpBB/phpbb/event/kernel_exception_subscriber.php @@ -70,6 +70,9 @@ class kernel_exception_subscriber implements EventSubscriberInterface $message = $this->language->lang_array($message, $exception->get_parameters()); } + // Show text in bold + $message = preg_replace('#<(/?strong)>#i', '<$1>', $message); + if (!$event->getRequest()->isXmlHttpRequest()) { page_header($this->language->lang('INFORMATION'));