phpBB

Code Changes

File: phpbb/textformatter/s9e/renderer.php

  Unmodified   Added   Modified   Removed
Line 139Line 139
		/**
* @see smiley_text()
*/

		/**
* @see smiley_text()
*/

		$root_path = (defined('PHPBB_USE_BOARD_URL_PATH') && PHPBB_USE_BOARD_URL_PATH) ? generate_board_url() . '/' : $path_helper->get_web_root_path();

		$root_path = $path_helper->get_web_root_path();


$this->set_smilies_path($root_path . $config['smilies_path']);
}


$this->set_smilies_path($root_path . $config['smilies_path']);
}

Line 152Line 152
	* @param  \phpbb\user          $user
* @param \phpbb\config\config $config
* @param \phpbb\auth\auth $auth

	* @param  \phpbb\user          $user
* @param \phpbb\config\config $config
* @param \phpbb\auth\auth $auth

	* @return null

	* @return void

	*/
public function configure_user(\phpbb\user $user, \phpbb\config\config $config, \phpbb\auth\auth $auth)
{

	*/
public function configure_user(\phpbb\user $user, \phpbb\config\config $config, \phpbb\auth\auth $auth)
{

Line 175Line 175

// Set this user's style id and other parameters
$this->renderer->setParameters(array(


// Set this user's style id and other parameters
$this->renderer->setParameters(array(

			'S_IS_BOT'          => $user->data['is_bot'],
'S_REGISTERED_USER' => $user->data['is_registered'],
'S_USER_LOGGED_IN' => ($user->data['user_id'] != ANONYMOUS),
'STYLE_ID' => $user->style['style_id'],

			'S_IS_BOT'			=> $user->data['is_bot'] ?? false,
'S_REGISTERED_USER' => $user->data['is_registered'] ?? false,
'S_USER_LOGGED_IN' => ($user->data['user_id'] != ANONYMOUS),
'STYLE_ID' => $user->style['style_id'],

		));
}


		));
}