Feature sg mail
Merge request reports
Activity
38 38 * 39 39 */ 40 40 public function indexAction() { 41 $this->view->assign('extensions', MailTemplateService::$registerArray); 41 $path = ExtensionManagementUtility::extPath( 42 'sg_mail' 43 ) . 'Configuration/Templates/'; 44 $results = scandir($path); 45 46 $extensions = []; 47 foreach ($results as $result) { 48 if ($result == '.' || $result == '..') { 52 52 'extension' => $extension, 53 53 'templateName' => $templateName 54 54 ]; 55 56 $defaultLangFile = $templatePath . 'sg_mail.locallang.xlf'; 57 if (!file_exists($defaultLangFile)) { 58 $defaultLangFile = fopen($templatePath . 'sg_mail.locallang.xlf', 'w'); Benutze file_put_contents.
Edited by Stefan Galinski
85 85 $registerArray = MailTemplateService::getRegisterArray(); 86 86 $templateEntry = $registerArray[$extensionKey][$templateKey]; 87 87 88 $templateFileContents = file_get_contents( 89 $templateEntry['templatePath'] . $language . '.sg_mail.locallang.html' 90 ); 91 92 $body = MailTemplateService::injectEmailContent($templateFileContents, $content); 88 $objectManager = GeneralUtility::makeInstance(ObjectManager::class); 89 $emailView = $objectManager->get('TYPO3\\CMS\\Fluid\\View\\StandaloneView'); 90 $emailView->setTemplatePathAndFilename($templateEntry['templatePath'] . $language . '.sg_mail.locallang.html'); mentioned in commit 05f67118
Please register or sign in to reply