phpBB

Code Changes

File: phpbb/event/kernel_exception_subscriber.php

  Unmodified   Added   Modified   Removed
Line 43Line 43
	* @var \phpbb\language\language
*/
protected $language;

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

 

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


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


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

Line 52Line 59
	*
* @param \phpbb\template\template $template Template object
* @param \phpbb\language\language $language Language object

	*
* @param \phpbb\template\template $template Template object
* @param \phpbb\language\language $language Language object

 
	* @param \phpbb\user				$user		User object

	* @param bool						$debug		Set to true to show full exception messages
*/

	* @param bool						$debug		Set to true to show full exception messages
*/

	public function __construct(\phpbb\template\template $template, \phpbb\language\language $language, $debug = false)

	public function __construct(\phpbb\template\template $template, \phpbb\language\language $language, \phpbb\user $user, $debug = false)

	{
$this->debug = $debug || defined('DEBUG');
$this->template = $template;
$this->language = $language;

	{
$this->debug = $debug || defined('DEBUG');
$this->template = $template;
$this->language = $language;

 
		$this->user = $user;

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


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


Line 82Line 91
		else if (!$this->debug && $exception instanceof NotFoundHttpException)
{
$message = $this->language->lang('PAGE_NOT_FOUND');

		else if (!$this->debug && $exception instanceof NotFoundHttpException)
{
$message = $this->language->lang('PAGE_NOT_FOUND');

 
		}

// Do not update user session page if it does not exist
if ($exception instanceof NotFoundHttpException)
{
$this->user->update_session_page = false;

		}

// Show <strong> text in bold

		}

// Show <strong> text in bold