1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/11768] Preserve comments in custom BBCodes

PHPBB3-11768
This commit is contained in:
JoshyPHP
2015-03-21 12:32:17 +01:00
parent 3cd5ca8de1
commit 69dae16ba7
3 changed files with 47 additions and 0 deletions

View File

@@ -180,6 +180,10 @@ class factory implements \phpbb\textformatter\cache_interface
// Don't automatically ignore text in places where text is not allowed
$configurator->rulesGenerator->remove('IgnoreTextIfDisallowed');
// Don't remove comments and instead convert them to xsl:comment elements
$configurator->templateNormalizer->remove('RemoveComments');
$configurator->templateNormalizer->add('TransposeComments');
// Set the rendering engine and configure it to save to the cache dir
$configurator->rendering->engine = 'PHP';
$configurator->rendering->engine->cacheDir = $this->cache_dir;