Skip to content
Snippets Groups Projects
Commit 1adf4132 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[TASK] Working on automatic registration

parent 1067c060
No related branches found
No related tags found
1 merge request!10Feature improved usability
......@@ -834,8 +834,8 @@ class MailTemplateService {
$configArray = (include $extensionConfigDirectory . '/' . self::REGISTER_FILE);
if ($configArray) {
foreach ($configArray as $config) {
$registerArray = self::writeRegisterArrayEntry($registerArray, $config['extension_key'], $config['extension_key'], $config['template_key'], $config);
foreach ($configArray as $key => $config) {
$registerArray = self::writeRegisterArrayEntry($registerArray, $config['extensionKey'], $config['extensionKey'], $config['templateKey'], $config);
}
}
......@@ -858,7 +858,7 @@ class MailTemplateService {
array $registerArray, $extensionName, $extensionKey, $templateKey, array $configArray
) {
// transform template directory name: your_templates => YourTemplates/
$templateDirectoryParts = GeneralUtility::trimExplode('_', $configArray['template_key']);
$templateDirectoryParts = GeneralUtility::trimExplode('_', $templateKey);
$templateDirectory = '';
foreach ($templateDirectoryParts as $part) {
$templateDirectory .= ucfirst($part);
......@@ -869,7 +869,7 @@ class MailTemplateService {
) . self::DEFAULT_TEMPLATE_PATH . $templateDirectory;
if ($configArray['template_path']) {
$templatePath = $configArray['template_key'];
$templatePath = $configArray[$templateKey];
}
$description = $configArray['description'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment