Fixed bug #9772: t3lib_parsehtml_proc does not provide Page TSConfig to user-defined...
authorStanislas Rolland <typo3@sjbr.ca>
Thu, 18 Dec 2008 21:18:43 +0000 (21:18 +0000)
committerStanislas Rolland <typo3@sjbr.ca>
Thu, 18 Dec 2008 21:18:43 +0000 (21:18 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4574 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_parsehtml_proc.php

index bd05a7f..c13e703 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-12-18  Stanislas Rolland  <typo3@sjbr.ca>
+
+       * Fixed bug #9772: t3lib_parsehtml_proc does not provide Page TSConfig to user-defined RTE transformations
+
 2008-12-18  Steffen Kamper  <info@sk-typo3.de>
 
        * Fixed bug #7265: Submodules of Web module can't work with mod.php and the _DISPATCH system
index d264e5e..0d8d5a0 100755 (executable)
@@ -110,6 +110,7 @@ class t3lib_parsehtml_proc extends t3lib_parsehtml {
        var $elRef = '';                                // Element reference [table]:[field], eg. "tt_content:bodytext"
        var $relPath='';                                // Relative path
        var $relBackPath='';                    // Relative back-path
+       public $tsConfig = array();             // Current Page TSConfig
        var $procOptions = '';                  // Set to the TSconfig options coming from Page TSconfig
 
                // Internal, dynamic
@@ -232,6 +233,7 @@ class t3lib_parsehtml_proc extends t3lib_parsehtml {
        function RTE_transform($value,$specConf,$direction='rte',$thisConfig=array())   {
 
                        // Init:
+               $this->tsConfig = $thisConfig;
                $this->procOptions = $thisConfig['proc.'];
                $this->preserveTags = strtoupper(implode(',',t3lib_div::trimExplode(',',$this->procOptions['preserveTags'])));