@@ -21,7 +21,12 @@ class Developerlog {
2121 protected $ extKey = 'dm_developerlog ' ;
2222
2323 /** @var array $extConf */
24- protected $ extConf = array ();
24+ protected $ extConf = array (
25+ 'minLogLevel ' => 1 ,
26+ 'excludeKeys ' => 'TYPO3\CMS\Core\Authentication\AbstractUserAuthentication, TYPO3\CMS\Backend\Template\DocumentTemplate, extbase ' ,
27+ 'dataCap ' => 1000000 ,
28+ 'includeCallerInformation ' => 1
29+ );
2530
2631 /** @var string $request_id */
2732 protected $ request_id = '' ;
@@ -60,7 +65,11 @@ class Developerlog {
6065 */
6166 public function __construct ()
6267 {
63- $ this ->extConf = unserialize ($ GLOBALS ['TYPO3_CONF_VARS ' ]['EXT ' ]['extConf ' ][$ this ->extKey ]);
68+ $ extConf = array ();
69+ if (isset ($ GLOBALS ['TYPO3_CONF_VARS ' ]['EXT ' ]['extConf ' ][$ this ->extKey ])) {
70+ $ extConf = unserialize ($ GLOBALS ['TYPO3_CONF_VARS ' ]['EXT ' ]['extConf ' ][$ this ->extKey ]);
71+ }
72+ $ this ->extConf = array_merge ($ this ->extConf , $ extConf );
6473 $ this ->request_id = \TYPO3 \CMS \Core \Core \Bootstrap::getInstance ()->getRequestId ();
6574 $ this ->request_type = TYPO3_REQUESTTYPE ;
6675 $ this ->excludeKeys = GeneralUtility::trimExplode (', ' , $ this ->extConf ['excludeKeys ' ], TRUE );
@@ -124,7 +133,7 @@ protected function getCurrentPageId()
124133 } else {
125134 $ singletonInstances = GeneralUtility::getSingletonInstances ();
126135 if (isset ($ singletonInstances ['TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager ' ])) { // lucky us, that guy is clever
127- $ backendConfigurationManager = GeneralUtility::makeInstance ('TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager ' );
136+ $ backendConfigurationManager = GeneralUtility::makeInstance ('TYPO3\CMS\Extbase\Configuration\BackendConfigurationManager ' , GeneralUtility:: makeInstance ( ' TYPO3\CMS\Core\Database\QueryGenerator ' ) );
128137 // getDefaultBackendStoragePid() because someone made getCurrentPageId() protected
129138 $ this ->currentPageId = $ backendConfigurationManager ->getDefaultBackendStoragePid ();
130139 } else { // simplified backend check
0 commit comments