phpBB

Code Changes

File: phpbb/feed/helper.php

  Unmodified   Added   Modified   Removed
Line 17Line 17
use phpbb\path_helper;
use phpbb\textformatter\s9e\renderer;
use phpbb\user;

use phpbb\path_helper;
use phpbb\textformatter\s9e\renderer;
use phpbb\user;

 
use phpbb\auth\auth;

use Symfony\Component\DependencyInjection\ContainerInterface;

/**

use Symfony\Component\DependencyInjection\ContainerInterface;

/**

Line 38Line 39

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


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

 

/** @var auth */
protected $auth;


/**
* Constructor
*


/**
* Constructor
*

 
	 * @param	auth				$auth			Auth object

	 * @param	config				$config			Config object
* @param ContainerInterface $container Service container object
* @param path_helper $path_helper Path helper object
* @param renderer $renderer TextFormatter renderer object
* @param user $user User object
*/

	 * @param	config				$config			Config object
* @param ContainerInterface $container Service container object
* @param path_helper $path_helper Path helper object
* @param renderer $renderer TextFormatter renderer object
* @param user $user User object
*/

	public function __construct(config $config, ContainerInterface $container, path_helper $path_helper, renderer $renderer, user $user)

	public function __construct(auth $auth, config $config, ContainerInterface $container, path_helper $path_helper, renderer $renderer, user $user)

	{

	{

 
		$this->auth = $auth;

		$this->config = $config;
$this->container = $container;
$this->path_helper = $path_helper;

		$this->config = $config;
$this->container = $container;
$this->path_helper = $path_helper;

Line 91Line 97
		if (empty($offset_string))
{
$zone_offset = $this->user->create_datetime()->getOffset();

		if (empty($offset_string))
{
$zone_offset = $this->user->create_datetime()->getOffset();

			$offset_string = phpbb_format_timezone_offset($zone_offset);

			$offset_string = phpbb_format_timezone_offset($zone_offset, true);

		}

return gmdate("Y-m-d\TH:i:s", $time + $zone_offset) . $offset_string;

		}

return gmdate("Y-m-d\TH:i:s", $time + $zone_offset) . $offset_string;

Line 119Line 125
		$this->renderer->configure_quote_helper($this->container->get('feed.quote_helper'));

$this->renderer->set_smilies_path($this->get_board_url() . '/' . $this->config['smilies_path']);

		$this->renderer->configure_quote_helper($this->container->get('feed.quote_helper'));

$this->renderer->set_smilies_path($this->get_board_url() . '/' . $this->config['smilies_path']);

 

$this->renderer->configure_user($this->user, $this->config, $this->auth);


$content = generate_text_for_display($content, $uid, $bitfield, $options);



$content = generate_text_for_display($content, $uid, $bitfield, $options);