[BUGFIX] Declaration of tx_rtehtmlarea_base::drawRTE() not compatible
authorStanislas Rolland <typo3@sjbr.ca>
Thu, 28 Jun 2012 19:49:14 +0000 (15:49 -0400)
committerStanislas Rolland <typo3@sjbr.ca>
Thu, 28 Jun 2012 20:54:43 +0000 (22:54 +0200)
Solution: First parameter should be defined as reference so as to be
compatible with the definition of t3lib_rteapi::drawRTE().

Change-Id: Id1617a2345a6c6f564a9f8a7d6b0ac7f0cc34be8
Releases: 4.5, 4.6, 4.7, 6.0
Resolves: #37541
Reviewed-on: http://review.typo3.org/12430
Reviewed-by: Stanislas Rolland
Tested-by: Stanislas Rolland
typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php
typo3/sysext/rtehtmlarea/pi2/class.tx_rtehtmlarea_pi2.php

index eff6b33..9d8205b 100644 (file)
@@ -230,8 +230,7 @@ class tx_rtehtmlarea_base extends t3lib_rteapi {
         * @param       integer         PID value of record (true parent page id)
         * @return      string          HTML code for RTE!
         */
-
-       function drawRTE($parentObject, $table, $field, $row, $PA, $specConf, $thisConfig, $RTEtypeVal, $RTErelPath, $thePidValue) {
+       function drawRTE(&$parentObject, $table, $field, $row, $PA, $specConf, $thisConfig, $RTEtypeVal, $RTErelPath, $thePidValue) {
                global $BE_USER, $LANG, $TYPO3_DB, $TYPO3_CONF_VARS;
 
                $this->TCEform = $parentObject;
@@ -1500,4 +1499,4 @@ class tx_rtehtmlarea_base extends t3lib_rteapi {
 if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/rtehtmlarea/class.tx_rtehtmlarea_base.php'])) {
        include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/rtehtmlarea/class.tx_rtehtmlarea_base.php']);
 }
-?>
\ No newline at end of file
+?>
index 610d983..5482638 100644 (file)
@@ -70,7 +70,7 @@ class tx_rtehtmlarea_pi2 extends tx_rtehtmlarea_base {
         * @param       integer         PID value of record (true parent page id)
         * @return      string          HTML code for RTE!
         */
-       function drawRTE($parentObject,$table,$field,$row,$PA,$specConf,$thisConfig,$RTEtypeVal,$RTErelPath,$thePidValue) {
+       function drawRTE(&$parentObject, $table, $field, $row, $PA, $specConf, $thisConfig, $RTEtypeVal, $RTErelPath, $thePidValue) {
                global $TSFE, $TYPO3_CONF_VARS, $TYPO3_DB;
 
                $this->TCEform = $parentObject;