1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/11768] Replaced the Censor plugin

...with something that is run at rendering time.

PHPBB3-11768
This commit is contained in:
JoshyPHP
2015-02-19 06:05:39 +01:00
parent 6578e1c6ec
commit f721b85a78
5 changed files with 50 additions and 37 deletions

View File

@@ -138,10 +138,6 @@ class phpbb_textformatter_s9e_parser_test extends phpbb_test_case
'disable_bbcodes', null,
'disablePlugin', 'BBCodes'
),
array(
'disable_censor', null,
'disablePlugin', 'Censor'
),
array(
'disable_magic_url', null,
'disablePlugin', array('Autoemail', 'Autolink')
@@ -158,10 +154,6 @@ class phpbb_textformatter_s9e_parser_test extends phpbb_test_case
'enable_bbcodes', null,
'enablePlugin', 'BBCodes'
),
array(
'enable_censor', null,
'enablePlugin', 'Censor'
),
array(
'enable_magic_url', null,
'enablePlugin', array('Autoemail', 'Autolink')

View File

@@ -93,12 +93,12 @@ class phpbb_textformatter_s9e_renderer_test extends phpbb_test_case
{
return array(
array(
'<r><CENSOR with="banana">apple</CENSOR></r>',
'<t>apple</t>',
'banana',
array('set_viewcensors' => true)
),
array(
'<r><CENSOR with="banana">apple</CENSOR></r>',
'<t>apple</t>',
'apple',
array('set_viewcensors' => false)
),
@@ -146,11 +146,11 @@ class phpbb_textformatter_s9e_renderer_test extends phpbb_test_case
{
return array(
array(
'<r><CENSOR with="banana">apple</CENSOR></r>',
'<t>apple</t>',
'banana'
),
array(
'<r><CENSOR with="banana">apple</CENSOR></r>',
'<t>apple</t>',
'banana',
function ($phpbb_container)
{
@@ -161,7 +161,7 @@ class phpbb_textformatter_s9e_renderer_test extends phpbb_test_case
}
),
array(
'<r><CENSOR with="banana">apple</CENSOR></r>',
'<t>apple</t>',
'banana',
function ($phpbb_container)
{
@@ -175,7 +175,7 @@ class phpbb_textformatter_s9e_renderer_test extends phpbb_test_case
}
),
array(
'<r><CENSOR with="banana">apple</CENSOR></r>',
'<t>apple</t>',
'apple',
function ($phpbb_container, $test)
{