File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
app/code/Magento/Customer/Model Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,9 @@ class EmailNotification implements EmailNotificationInterface
60
60
self ::NEW_ACCOUNT_EMAIL_CONFIRMATION => self ::XML_PATH_CONFIRM_EMAIL_TEMPLATE ,
61
61
];
62
62
63
+ /**
64
+ * Map of templates. Use for backward compatibility
65
+ */
63
66
const TEMPLATE_MAP = [
64
67
self ::XML_PATH_FORGOT_EMAIL_TEMPLATE => self ::XML_PATH_RESET_PASSWORD_TEMPLATE
65
68
];
@@ -245,7 +248,7 @@ private function sendEmailTemplate(
245
248
$ storeId = null ,
246
249
$ email = null
247
250
) {
248
- $ templateId = $ this ->getCorrectTemplateId ($ template , 'store ' , $ storeId );
251
+ $ templateId = $ this ->getTemplateId ($ template , 'store ' , $ storeId );
249
252
if ($ email === null ) {
250
253
$ email = $ customer ->getEmail ();
251
254
}
@@ -390,7 +393,7 @@ public function newAccount(
390
393
* @param string $storeId
391
394
* @return string
392
395
*/
393
- private function getCorrectTemplateId ($ template , $ scopeType , $ storeId )
396
+ private function getTemplateId ($ template , $ scopeType , $ storeId )
394
397
{
395
398
if (array_key_exists ($ template , self ::TEMPLATE_MAP )) {
396
399
$ templateId = $ this ->scopeConfig ->getValue (self ::TEMPLATE_MAP [$ template ], $ scopeType , $ storeId );
You can’t perform that action at this time.
0 commit comments