[TASK] Deprecate f:format.html in the backend context 13/45913/3
authorGeorg Ringer <georg.ringer@gmail.com>
Fri, 15 Jan 2016 07:54:09 +0000 (08:54 +0100)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Fri, 15 Jan 2016 13:05:16 +0000 (14:05 +0100)
Using f:format.html in the backend context must be avoided
and is deprecated now.

Change-Id: I734593bdde1e43339131a6e7f93f9c29c52dd470
Resolves: #72716
Releases: master
Reviewed-on: https://review.typo3.org/45913
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/core/Documentation/Changelog/master/Deprecation-72716-DeprecateFformathtmlForUsageInBackend.rst [new file with mode: 0644]
typo3/sysext/fluid/Classes/ViewHelpers/Format/HtmlViewHelper.php

diff --git a/typo3/sysext/core/Documentation/Changelog/master/Deprecation-72716-DeprecateFformathtmlForUsageInBackend.rst b/typo3/sysext/core/Documentation/Changelog/master/Deprecation-72716-DeprecateFformathtmlForUsageInBackend.rst
new file mode 100644 (file)
index 0000000..6bf57ad
--- /dev/null
@@ -0,0 +1,26 @@
+==================================================================
+Deprecation: #72716 - Deprecate f:format.html for usage in backend
+==================================================================
+
+Description
+===========
+
+The usage of the viewhelper ``f:format.html`` in the backend context is discouraged because of possible side effects - e.g. no ``lib.parseFunc`` is configured.
+
+
+Impact
+======
+
+Using the viewhelper ``f:format.html`` in the backend context will throw a deprecation warning.
+
+
+Affected Installations
+======================
+
+Any TYPO3 instance using the viewhelper in the backend context.
+
+
+Migration
+=========
+
+Use the viewhelper ``f:format.raw``.
\ No newline at end of file
index 405caef..77b0b24 100644 (file)
@@ -95,6 +95,8 @@ class HtmlViewHelper extends AbstractViewHelper implements CompilableInterface
     {
         $parseFuncTSPath = $arguments['parseFuncTSPath'];
         if (TYPO3_MODE === 'BE') {
+            GeneralUtility::deprecationLog('The usage of the viewhelper "f:format.html" in the backend context is discouraged, and will stop working with CMS 9. '
+                    . 'Use the viewhelper "f:format.raw" instead.');
             self::simulateFrontendEnvironment();
         }
         $value = $renderChildrenClosure();