diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2017-12-27 18:11:18 +0100 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2017-12-27 18:11:18 +0100 |
| commit | 9632294730af3322c467dd5793a6b3d74fe9cd57 (patch) | |
| tree | 3844060f73c9dda5dfc4b603a9e7a311a7de0bad /phpBB/phpbb/textformatter/s9e/factory.php | |
| parent | 6acfe2a0cb584de823bc0633e6a864180effebf8 (diff) | |
| parent | b9dce3fa65a508baa02bc66e86e68b931e0ba670 (diff) | |
| download | forums-9632294730af3322c467dd5793a6b3d74fe9cd57.tar forums-9632294730af3322c467dd5793a6b3d74fe9cd57.tar.gz forums-9632294730af3322c467dd5793a6b3d74fe9cd57.tar.bz2 forums-9632294730af3322c467dd5793a6b3d74fe9cd57.tar.xz forums-9632294730af3322c467dd5793a6b3d74fe9cd57.zip | |
Merge pull request #5046 from JoshyPHP/ticket/15457
[ticket/15457] Updated s9e/text-formatter dependency
Diffstat (limited to 'phpBB/phpbb/textformatter/s9e/factory.php')
| -rw-r--r-- | phpBB/phpbb/textformatter/s9e/factory.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/factory.php b/phpBB/phpbb/textformatter/s9e/factory.php index 5b1c89c4db..1e85856898 100644 --- a/phpBB/phpbb/textformatter/s9e/factory.php +++ b/phpBB/phpbb/textformatter/s9e/factory.php @@ -266,7 +266,8 @@ class factory implements \phpbb\textformatter\cache_interface ->addParameterByName('logger') ->addParameterByName('max_img_height') ->addParameterByName('max_img_width') - ->markAsSafeAsURL(); + ->markAsSafeAsURL() + ->setJS('UrlFilter.filter'); // Add default BBCodes foreach ($this->get_default_bbcodes($configurator) as $bbcode) @@ -355,8 +356,6 @@ class factory implements \phpbb\textformatter\cache_interface $configurator->registeredVars['max_img_width'] = 0; // Load the Emoji plugin and modify its tag's template to obey viewsmilies - $configurator->Emoji->omitImageSize(); - $configurator->Emoji->useSVG(); $tag = $configurator->Emoji->getTag(); $tag->template = '<xsl:choose><xsl:when test="$S_VIEWSMILIES">' . str_replace('class="emoji"', 'class="emoji smilies"', $tag->template) . '</xsl:when><xsl:otherwise><xsl:value-of select="."/></xsl:otherwise></xsl:choose>'; |
