[FEATURE] Debug register and page with TypoScript 95/21695/3
authorLars Peipmann <lars@peipmann.de>
Thu, 27 Jun 2013 21:11:43 +0000 (23:11 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sat, 29 Jun 2013 12:24:58 +0000 (14:24 +0200)
Adds the possibility to show the content of
$GLOBALS['TSFE']->register and $GLOBALS['TSFE']->page
with the debug option in getText.

Example:
10 = TEXT
10.data = debug:register
20 = TEXT
20.data = debug:page

Resolves: #49478
Releases: 6.2
Change-Id: I79b118fd2450193a6573569f7ec99b8159f973bc
Reviewed-on: https://review.typo3.org/21695
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php

index a2a432d..3a10c8d 100644 (file)
@@ -5376,6 +5376,12 @@ class ContentObjectRenderer {
                                        case 'data':
                                                $retVal = \TYPO3\CMS\Core\Utility\DebugUtility::viewArray($this->data);
                                                break;
+                                       case 'register':
+                                               $retVal = \TYPO3\CMS\Core\Utility\DebugUtility::viewArray($GLOBALS['TSFE']->register);
+                                               break;
+                                       case 'page':
+                                               $retVal = \TYPO3\CMS\Core\Utility\DebugUtility::viewArray($GLOBALS['TSFE']->page);
+                                               break;
                                        }
                                        break;
                                }