aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/textformatter/s9e/factory.php4
-rw-r--r--phpBB/phpbb/textformatter/s9e/parser.php2
-rw-r--r--phpBB/phpbb/textformatter/s9e/renderer.php2
3 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/factory.php b/phpBB/phpbb/textformatter/s9e/factory.php
index 77b1a1c916..ed99bba4a1 100644
--- a/phpBB/phpbb/textformatter/s9e/factory.php
+++ b/phpBB/phpbb/textformatter/s9e/factory.php
@@ -294,7 +294,7 @@ class factory implements \phpbb\textformatter\cache
/**
* Regenerate and cache a new parser and renderer
*
- * @return array Array with two elements: an instance of the parser, an instance of the renderer
+ * @return array Associative array with at least two elements: "parser" and "renderer"
*/
public function regenerate()
{
@@ -315,7 +315,7 @@ class factory implements \phpbb\textformatter\cache
);
$this->cache->put($this->cache_key_renderer, $renderer_data);
- return array($parser, $renderer);
+ return array('parser' => $parser, 'renderer' => $renderer);
}
/**
diff --git a/phpBB/phpbb/textformatter/s9e/parser.php b/phpBB/phpbb/textformatter/s9e/parser.php
index 3b490131f2..8e78a18d40 100644
--- a/phpBB/phpbb/textformatter/s9e/parser.php
+++ b/phpBB/phpbb/textformatter/s9e/parser.php
@@ -48,7 +48,7 @@ class parser extends \phpbb\textformatter\parser
$parser = $cache->get($key);
if (!$parser)
{
- list($parser) = $factory->regenerate();
+ extract($factory->regenerate());
}
$this->parser = $parser;
diff --git a/phpBB/phpbb/textformatter/s9e/renderer.php b/phpBB/phpbb/textformatter/s9e/renderer.php
index eea01f82af..943056e6ca 100644
--- a/phpBB/phpbb/textformatter/s9e/renderer.php
+++ b/phpBB/phpbb/textformatter/s9e/renderer.php
@@ -80,7 +80,7 @@ class renderer extends \phpbb\textformatter\renderer
if (!isset($renderer))
{
- list(, $renderer) = $factory->regenerate();
+ extract($factory->regenerate());
}
$this->renderer = $renderer;