phpBB

Code Changes

File: phpbb/event/kernel_exception_subscriber.php

  Unmodified   Added   Modified   Removed
Line 33Line 33
	* @var \phpbb\user
*/
protected $user;

	* @var \phpbb\user
*/
protected $user;

 

/** @var \phpbb\request\type_cast_helper */
protected $type_caster;


/**
* Construct method


/**
* Construct method

Line 44Line 47
	{
$this->template = $template;
$this->user = $user;

	{
$this->template = $template;
$this->user = $user;

 
		$this->type_caster = new \phpbb\request\type_cast_helper();

	}

/**

	}

/**

Line 57Line 61
		$exception = $event->getException();

$message = $exception->getMessage();

		$exception = $event->getException();

$message = $exception->getMessage();

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


if ($exception instanceof \phpbb\exception\exception_interface)
{


if ($exception instanceof \phpbb\exception\exception_interface)
{