From 7544707c3cdd3c8161602b0d2396147e608f8a52 Mon Sep 17 00:00:00 2001
From: Benni Mack <benni@typo3.org>
Date: Wed, 20 Jan 2016 23:05:04 +0100
Subject: [PATCH] [TASK] RTE: Store special TCA type configuration in local
 variable

$this->rte_p is not used at all anymore, and can safely
be removed.

Resolves: #72855
Releases: master
Change-Id: I369296553313c0f21ca5d2e5448ea8d3d8fbf879
Reviewed-on: https://review.typo3.org/46123
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Morton Jonuschat <m.jonuschat@mojocode.de>
Tested-by: Morton Jonuschat <m.jonuschat@mojocode.de>
---
 typo3/sysext/core/Classes/Html/RteHtmlParser.php | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/typo3/sysext/core/Classes/Html/RteHtmlParser.php b/typo3/sysext/core/Classes/Html/RteHtmlParser.php
index bfdd4bd16c07..72e8dcc486e5 100644
--- a/typo3/sysext/core/Classes/Html/RteHtmlParser.php
+++ b/typo3/sysext/core/Classes/Html/RteHtmlParser.php
@@ -74,13 +74,6 @@ class RteHtmlParser extends HtmlParser
      */
     public $TS_transform_db_safecounter = 100;
 
-    /**
-     * Parameters from TCA types configuration related to the RTE
-     *
-     * @var string
-     */
-    public $rte_p = '';
-
     /**
      * Data caching for processing function
      *
@@ -141,12 +134,12 @@ class RteHtmlParser extends HtmlParser
             $this->blockElementList = $this->procOptions['blockElementList'];
         }
         // Get parameters for rte_transformation:
-        $p = ($this->rte_p = BackendUtility::getSpecConfParametersFromArray($specConf['rte_transform']['parameters']));
+        $specialFieldConfiguration = BackendUtility::getSpecConfParametersFromArray($specConf['rte_transform']['parameters']);
         // Setting modes:
         if ((string)$this->procOptions['overruleMode'] !== '') {
             $modes = array_unique(GeneralUtility::trimExplode(',', $this->procOptions['overruleMode']));
         } else {
-            $modes = array_unique(GeneralUtility::trimExplode('-', $p['mode']));
+            $modes = array_unique(GeneralUtility::trimExplode('-', $specialFieldConfiguration['mode']));
         }
         $revmodes = array_flip($modes);
         // Find special modes and extract them:
-- 
GitLab