[TASK] RTE: Store special TCA type configuration in local variable 23/46123/3
authorBenni Mack <benni@typo3.org>
Wed, 20 Jan 2016 22:05:04 +0000 (23:05 +0100)
committerMorton Jonuschat <m.jonuschat@mojocode.de>
Thu, 21 Jan 2016 10:29:03 +0000 (11:29 +0100)
$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

index bfdd4bd..72e8dcc 100644 (file)
@@ -75,13 +75,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
      *
      * @var array
@@ -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: