aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/textformatter
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-12-04 14:03:43 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-01-06 13:52:11 +0100
commit38f36882177d25e58d5de41060d51f869a20f8d5 (patch)
treed396575f0756259abee04d523cb176324421d653 /phpBB/phpbb/textformatter
parent266576c6a4224f4b803040c678020e825a1510b5 (diff)
downloadforums-38f36882177d25e58d5de41060d51f869a20f8d5.tar
forums-38f36882177d25e58d5de41060d51f869a20f8d5.tar.gz
forums-38f36882177d25e58d5de41060d51f869a20f8d5.tar.bz2
forums-38f36882177d25e58d5de41060d51f869a20f8d5.tar.xz
forums-38f36882177d25e58d5de41060d51f869a20f8d5.zip
[ticket/13454] Fix a few issues introduced by overdeleting stuff
PHPBB3-13454
Diffstat (limited to 'phpBB/phpbb/textformatter')
-rw-r--r--phpBB/phpbb/textformatter/s9e/parser.php4
-rw-r--r--phpBB/phpbb/textformatter/s9e/renderer.php3
2 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/parser.php b/phpBB/phpbb/textformatter/s9e/parser.php
index 6470bb8245..39e91f037e 100644
--- a/phpBB/phpbb/textformatter/s9e/parser.php
+++ b/phpBB/phpbb/textformatter/s9e/parser.php
@@ -51,6 +51,8 @@ class parser implements \phpbb\textformatter\parser_interface
$this->dispatcher = $dispatcher;
$this->parser = $parser;
+ $parser = $this;
+
/**
* Configure the parser service
*
@@ -72,6 +74,8 @@ class parser implements \phpbb\textformatter\parser_interface
*/
public function parse($text)
{
+ $parser = $this;
+
/**
* Modify a text before it is parsed
*
diff --git a/phpBB/phpbb/textformatter/s9e/renderer.php b/phpBB/phpbb/textformatter/s9e/renderer.php
index 6ba75d0c04..9be20b7f53 100644
--- a/phpBB/phpbb/textformatter/s9e/renderer.php
+++ b/phpBB/phpbb/textformatter/s9e/renderer.php
@@ -104,6 +104,7 @@ class renderer implements \phpbb\textformatter\renderer_interface
}
$this->dispatcher = $dispatcher;
$this->renderer = $renderer;
+ $renderer = $this;
/**
* Configure the renderer service
@@ -233,6 +234,8 @@ class renderer implements \phpbb\textformatter\renderer_interface
$xml = $this->quote_helper->inject_metadata($xml);
}
+ $renderer = $this;
+
/**
* Modify a parsed text before it is rendered
*