[BUGFIX] Use correct class in T3Editor save hook 89/22289/2
authorJigal van Hemert <jigal.van.hemert@typo3.org>
Sun, 14 Jul 2013 11:03:27 +0000 (13:03 +0200)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Sun, 14 Jul 2013 11:04:30 +0000 (13:04 +0200)
After merging the Template related sysexts the save hook in T3Editor
needs to refer to the new class.

Change-Id: I6eb4eef2d703b9e50246b7faef808985f609cb7f
Resolves: #50013
Releases: 6.2
Reviewed-on: https://review.typo3.org/22289
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
typo3/sysext/t3editor/Classes/Hook/TypoScriptTemplateInfoHook.php

index 41c9816..ea3ed83 100644 (file)
@@ -147,8 +147,8 @@ class TypoScriptTemplateInfoHook {
                                        }
                                        if (count($recData)) {
                                                // process template row before saving
-                                               $tstemplateinfo = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\TstemplateInfo\\Controller\\TypoScriptTemplateInformationModuleFunctionController');
-                                               /* @var $tstemplateinfo \TYPO3\CMS\TstemplateInfo\Controller\TypoScriptTemplateInformationModuleFunctionController */
+                                               $tstemplateinfo = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Tstemplate\\Controller\\TypoScriptTemplateInformationModuleFunctionController');
+                                               /* @var $tstemplateinfo \TYPO3\CMS\Tstemplate\Controller\TypoScriptTemplateInformationModuleFunctionController */
                                                // load the MOD_SETTINGS in order to check if the includeTypoScriptFileContent is set
                                                $tstemplateinfo->pObj->MOD_SETTINGS = \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleData(array('includeTypoScriptFileContent' => TRUE), array(), 'web_ts');
                                                $recData['sys_template'][$saveId] = $tstemplateinfo->processTemplateRowBeforeSaving($recData['sys_template'][$saveId]);