[BUGFIX] Register Tcemain as prototype 10/57910/2
authorMathias Brodala <mbrodala@pagemachine.de>
Wed, 15 Aug 2018 09:12:09 +0000 (11:12 +0200)
committerJo Hasenau <info@cybercraft.de>
Wed, 15 Aug 2018 13:48:22 +0000 (15:48 +0200)
This avoids a deprecation message on TYPO3v7. Also this class does
not have any persistent state and thus does not need to be a singleton.

Change-Id: I8786880791d610e8a0c95c0f9c9e69b1dd326652
Resolves: #85859
Releases: master
Reviewed-on: https://review.typo3.org/57910
Reviewed-by: Jo Hasenau <info@cybercraft.de>
Tested-by: Jo Hasenau <info@cybercraft.de>
ext_localconf.php

index e5137ca..2b9a9a6 100644 (file)
@@ -21,10 +21,10 @@ if (TYPO3_MODE == 'BE') {
 define('L10NMGR_FILEVERSION', '1.2');
 define('L10NMGR_VERSION', '7.0.0');
 $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['lowlevel']['cleanerModules']['tx_l10nmgr_index'] = array('EXT:l10nmgr/Classes/Index.php:Index');
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_l10nmgr'] = 'EXT:l10nmgr/Classes/Hooks/Tcemain.php:&Tcemain';
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tx_l10nmgr'] = 'EXT:l10nmgr/Classes/Hooks/Tcemain.php:Tcemain';
 $_EXTCONF_ARRAY = unserialize($_EXTCONF);
 if ($_EXTCONF_ARRAY['enable_stat_hook']) {
-  $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['recStatInfoHooks']['tx_l10nmgr'] = 'EXT:l10nmgr/Classes/Hooks/Tcemain.php:&Tcemain->stat';
+  $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['recStatInfoHooks']['tx_l10nmgr'] = 'EXT:l10nmgr/Classes/Hooks/Tcemain.php:Tcemain->stat';
 }
 // Add file cleanup task
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Localizationteam\\L10nmgr\\Task\\LocalizationmanagerFileGarbageCollection'] = array(