aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/textformatter
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2016-12-29 18:27:58 +0100
committerTristan Darricau <github@nicofuma.fr>2016-12-29 18:27:58 +0100
commit1f8f1b62866a51c8b728915fd8de6614c0ed4b0d (patch)
tree3e81d9a9af9550969853dfcb79151ea10abe6138 /phpBB/phpbb/textformatter
parentd5c063fd80de292673f0b8e4fe17e1082c9d1548 (diff)
parentf111e70fc3959d979e61e8134fcaefb670b32603 (diff)
downloadforums-1f8f1b62866a51c8b728915fd8de6614c0ed4b0d.tar
forums-1f8f1b62866a51c8b728915fd8de6614c0ed4b0d.tar.gz
forums-1f8f1b62866a51c8b728915fd8de6614c0ed4b0d.tar.bz2
forums-1f8f1b62866a51c8b728915fd8de6614c0ed4b0d.tar.xz
forums-1f8f1b62866a51c8b728915fd8de6614c0ed4b0d.zip
Merge pull request #4596 from JoshyPHP/ticket/14914
[ticket/14914] Made emoji scale in size with text
Diffstat (limited to 'phpBB/phpbb/textformatter')
-rw-r--r--phpBB/phpbb/textformatter/s9e/factory.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/textformatter/s9e/factory.php b/phpBB/phpbb/textformatter/s9e/factory.php
index a310c67359..55149b8e63 100644
--- a/phpBB/phpbb/textformatter/s9e/factory.php
+++ b/phpBB/phpbb/textformatter/s9e/factory.php
@@ -348,10 +348,10 @@ 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->setImageSize(18);
+ $configurator->Emoji->omitImageSize();
$configurator->Emoji->useSVG();
$tag = $configurator->Emoji->getTag();
- $tag->template = '<xsl:choose><xsl:when test="$S_VIEWSMILIES">' . str_replace('class="emoji"', 'class="smilies"', $tag->template) . '</xsl:when><xsl:otherwise><xsl:value-of select="."/></xsl:otherwise></xsl:choose>';
+ $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>';
/**
* Modify the s9e\TextFormatter configurator after the default settings are set