mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/10620] Implemented quote improvements
PHPBB3-10620
This commit is contained in:
@@ -28,6 +28,11 @@ class renderer implements \phpbb\textformatter\renderer_interface
|
||||
*/
|
||||
protected $dispatcher;
|
||||
|
||||
/**
|
||||
* @var quote_helper
|
||||
*/
|
||||
protected $quote_helper;
|
||||
|
||||
/**
|
||||
* @var \s9e\TextFormatter\Renderer
|
||||
*/
|
||||
@@ -112,6 +117,16 @@ class renderer implements \phpbb\textformatter\renderer_interface
|
||||
extract($dispatcher->trigger_event('core.text_formatter_s9e_renderer_setup', compact($vars)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure the quote_helper object used to display extended information in quotes
|
||||
*
|
||||
* @param quote_helper $quote_helper
|
||||
*/
|
||||
public function configure_quote_helper(quote_helper $quote_helper)
|
||||
{
|
||||
$this->quote_helper = $quote_helper;
|
||||
}
|
||||
|
||||
/**
|
||||
* Automatically set the smilies path based on config
|
||||
*
|
||||
@@ -214,6 +229,10 @@ class renderer implements \phpbb\textformatter\renderer_interface
|
||||
*/
|
||||
public function render($xml)
|
||||
{
|
||||
if (isset($this->quote_helper))
|
||||
{
|
||||
$xml = $this->quote_helper->inject_metadata($xml);
|
||||
}
|
||||
$renderer = $this;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user