diff options
author | JoshyPHP <s9e.dev@gmail.com> | 2015-06-16 08:16:56 +0200 |
---|---|---|
committer | JoshyPHP <s9e.dev@gmail.com> | 2015-06-25 03:11:55 +0200 |
commit | f02cc27014c27acaf44b27066959426db27b3493 (patch) | |
tree | bf8093cc0a8fe6a113719fa1eeaf27484e3da79f /phpBB/phpbb/textformatter/s9e/renderer.php | |
parent | 8747c7a2c17e2f5408f528f5213a3e056aefd54e (diff) | |
download | forums-f02cc27014c27acaf44b27066959426db27b3493.tar forums-f02cc27014c27acaf44b27066959426db27b3493.tar.gz forums-f02cc27014c27acaf44b27066959426db27b3493.tar.bz2 forums-f02cc27014c27acaf44b27066959426db27b3493.tar.xz forums-f02cc27014c27acaf44b27066959426db27b3493.zip |
[ticket/10620] Implemented quote improvements
PHPBB3-10620
Diffstat (limited to 'phpBB/phpbb/textformatter/s9e/renderer.php')
-rw-r--r-- | phpBB/phpbb/textformatter/s9e/renderer.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/renderer.php b/phpBB/phpbb/textformatter/s9e/renderer.php index 51bc44f339..2206605ba2 100644 --- a/phpBB/phpbb/textformatter/s9e/renderer.php +++ b/phpBB/phpbb/textformatter/s9e/renderer.php @@ -29,6 +29,11 @@ class renderer implements \phpbb\textformatter\renderer_interface protected $dispatcher; /** + * @var quote_helper + */ + protected $quote_helper; + + /** * @var \s9e\TextFormatter\Renderer */ protected $renderer; @@ -113,6 +118,16 @@ class renderer implements \phpbb\textformatter\renderer_interface } /** + * 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 * * @param \phpbb\config\config $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; /** |