[BUGFIX] Hook call modifyDBRow in ContentContentObject 48/17948/4
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:01:43 +0000 (19:01 +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/17948
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/frontend/Classes/ContentObject/ContentContentObject.php

index f5303d1..46755e0 100644 (file)
@@ -101,8 +101,8 @@ class ContentContentObject extends \TYPO3\CMS\Frontend\ContentObject\AbstractCon
                                                // Might be unset in the sys_language_contentOL
                                                if (is_array($row)) {
                                                        // 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 = \TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj($_classRef);
                                                                        $_procObj->modifyDBRow($row, $conf['table']);
                                                                }