[BUGFIX] RTE: deprecated call-time pass-by-reference
authorAndreas Bouche <bouche@flagbit.de>
Tue, 6 Mar 2012 17:54:13 +0000 (18:54 +0100)
committerGeorg Ringer <mail@ringerge.org>
Wed, 7 Mar 2012 07:23:59 +0000 (08:23 +0100)
The Hook to extend javascript functions in
mod3/class.tx_rtehtmlarea_browse_links.php uses a
deprecated call-time pass-by-reference, which may
lead to an Exception in the link-dialogue.

Change-Id: Ibfdd03467806ba4987519ebad82979ec7796fca2
Fixes: #34601
Releases: 4.7, 4.6
Reviewed-on: http://review.typo3.org/9423
Reviewed-by: Niki Mueller
Tested-by: Niki Mueller
Reviewed-by: Oliver Klee
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php

index 494555b..a3131f9 100644 (file)
@@ -601,7 +601,7 @@ class tx_rtehtmlarea_browse_links extends browse_links {
                        );
                        foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php']['extendJScode'] as $objRef) {
                                $processor = &t3lib_div::getUserObj($objRef);
                        );
                        foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/rtehtmlarea/mod3/class.tx_rtehtmlarea_browse_links.php']['extendJScode'] as $objRef) {
                                $processor = &t3lib_div::getUserObj($objRef);
-                               $JScode .= $processor->extendJScode( $_params, &$this);
+                               $JScode .= $processor->extendJScode( $_params, $this);
                        }
                }
 
                        }
                }