@@ -60,13 +60,6 @@ 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
- */
66
- const TEMPLATE_MAP = [
67
- self ::XML_PATH_FORGOT_EMAIL_TEMPLATE => self ::XML_PATH_RESET_PASSWORD_TEMPLATE
68
- ];
69
-
70
63
/**#@-*/
71
64
72
65
/**
@@ -248,7 +241,7 @@ private function sendEmailTemplate(
248
241
$ storeId = null ,
249
242
$ email = null
250
243
) {
251
- $ templateId = $ this ->getTemplateId ($ template , 'store ' , $ storeId );
244
+ $ templateId = $ this ->scopeConfig -> getValue ($ template , 'store ' , $ storeId );
252
245
if ($ email === null ) {
253
246
$ email = $ customer ->getEmail ();
254
247
}
@@ -384,23 +377,4 @@ public function newAccount(
384
377
$ storeId
385
378
);
386
379
}
387
-
388
- /**
389
- * Get templateId include considering template map
390
- *
391
- * @param string $template
392
- * @param string $scopeType
393
- * @param string $storeId
394
- * @return string
395
- */
396
- private function getTemplateId ($ template , $ scopeType , $ storeId )
397
- {
398
- if (array_key_exists ($ template , self ::TEMPLATE_MAP )) {
399
- $ templateId = $ this ->scopeConfig ->getValue (self ::TEMPLATE_MAP [$ template ], $ scopeType , $ storeId );
400
- if ($ templateId ) {
401
- return $ templateId ;
402
- }
403
- }
404
- return $ this ->scopeConfig ->getValue ($ template , $ scopeType , $ storeId );
405
- }
406
380
}
0 commit comments