[BUGFIX] Hook call modifyDBRow in ContentContentObject 64/17964/2
authorAlina Fleser <afleser@arxia.com>
Sat, 2 Feb 2013 11:11:28 +0000 (13:11 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 2 Feb 2013 18:02:36 +0000 (19:02 +0100)
Replace $this->TYPO3_CONF_VARS with $GLOBALS['TYPO3_CONF_VARS']

Fixes: #44416
Releases: 6.0, 6.1, 4.7, 4.6, 4.5
Change-Id: I1f2b6a2479cc879c2a9144d03e176b74d895d52f
Reviewed-on: https://review.typo3.org/17964
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/cms/tslib/content/class.tslib_content_content.php

index 7d8dd69..de0adb0 100644 (file)
@@ -125,8 +125,8 @@ class tslib_content_Content extends tslib_content_Abstract {
 
                                                if (is_array($row)) { // Might be unset in the sys_language_contentOL
                                                                // Call hook for possible manipulation of database row for cObj->data
-                                                       if (is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content_content.php']['modifyDBRow']))     {
-                                                               foreach($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content_content.php']['modifyDBRow'] as $_classRef)     {
+                                                       if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content_content.php']['modifyDBRow']))        {
+                                                               foreach($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_content_content.php']['modifyDBRow'] as $_classRef)        {
                                                                        $_procObj = t3lib_div::getUserObj($_classRef);
                                                                        $_procObj->modifyDBRow($row, $conf['table']);
                                                                }