phpBB

Code Changes

File: phpbb/event/kernel_exception_subscriber.php

  Unmodified   Added   Modified   Removed
Line 61Line 61
		$exception = $event->getException();

$message = $exception->getMessage();

		$exception = $event->getException();

$message = $exception->getMessage();

		$this->type_caster->set_var($message, $message, 'string', false, false);

		$this->type_caster->set_var($message, $message, 'string', true, false);


if ($exception instanceof \phpbb\exception\exception_interface)
{
$message = call_user_func_array(array($this->user, 'lang'), array_merge(array($message), $exception->get_parameters()));
}


if ($exception instanceof \phpbb\exception\exception_interface)
{
$message = call_user_func_array(array($this->user, 'lang'), array_merge(array($message), $exception->get_parameters()));
}

 

// Show <strong> text in bold
$message = preg_replace('#&lt;(/?strong)&gt;#i', '<$1>', $message);


if (!$event->getRequest()->isXmlHttpRequest())
{


if (!$event->getRequest()->isXmlHttpRequest())
{