From 5790f7d661bbe32673760e88676c4f92e6d39fe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albrecht=20K=C3=B6hnlein?= <a.koehnlein@ko-web.net> Date: Tue, 12 Nov 2019 18:02:12 +0100 Subject: [PATCH] [BUGFIX] Fix global variable name in README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f1c8e47d..b3464fba 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ It needs be a *.php* file and has to be inside the Configuration folder **typo3c Additionally you need to make your registration file known in your **ext_localconf.php** file: // register mail templates - $GLOBALS['sgmail']['my_extension_key']['unique_template_name'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('my_extension_key') . '/Configuration/SgMail/MyTemplate.php'; + $GLOBALS['sg_mail']['my_extension_key']['unique_template_name'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('my_extension_key') . '/Configuration/SgMail/MyTemplate.php'; sg_mail will automatically parse valid configuration files of all extensions within your TYPO3 instance. @@ -116,7 +116,7 @@ Example: // get an instance of the service /** @var MailTemplateService $mailService */ - $mailService = $this->objectManager->get(MailTemplateService::class, 'confirm_mail', sg_example', ['username' => $username]); + $mailService = $this->objectManager->get(MailTemplateService::class, 'confirm_mail', 'sg_example', ['username' => $username]); $mailService->setFromName($this->settings['fromName']); $mailService->setFromAddress($this->settings['fromEmail']); -- GitLab