1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-22 16:40:21 +01:00

Merge pull request #4643 from JoshyPHP/ticket/15008

[ticket/15008] Disable emoji when smilies are disabled
This commit is contained in:
Marc Alexander 2017-01-15 00:25:28 +01:00
commit 42e78004fb
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995
4 changed files with 22 additions and 0 deletions

View File

@ -142,6 +142,7 @@ class parser implements \phpbb\textformatter\parser_interface
public function disable_smilies()
{
$this->parser->disablePlugin('Emoticons');
$this->parser->disablePlugin('Emoji');
}
/**
@ -183,6 +184,7 @@ class parser implements \phpbb\textformatter\parser_interface
public function enable_smilies()
{
$this->parser->enablePlugin('Emoticons');
$this->parser->enablePlugin('Emoji');
}
/**

View File

@ -0,0 +1,18 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
function before_assert_phpbb3_15008($vars)
{
extract($vars);
$parser->disable_smilies();
}

View File

@ -0,0 +1 @@
No smilies :) or shortnames :strawberry:

View File

@ -0,0 +1 @@
No smilies :) or shortnames :strawberry: