File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
app/code/Magento/Email/Model
lib/internal/Magento/Framework/App/Request Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -534,10 +534,9 @@ protected function cancelDesignConfig()
534
534
*/
535
535
public function setForcedArea ($ templateId )
536
536
{
537
- if ($ this ->area ) {
538
- throw new \ LogicException ( __ ( ' Area is already set ' ) );
537
+ if (! isset ( $ this ->area ) ) {
538
+ $ this -> area = $ this -> emailConfig -> getTemplateArea ( $ templateId );
539
539
}
540
- $ this ->area = $ this ->emailConfig ->getTemplateArea ($ templateId );
541
540
return $ this ;
542
541
}
543
542
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ public function setPathInfo($pathInfo = null)
149
149
return $ this ;
150
150
}
151
151
152
- $ requestUri = $ this ->removeRepitedSlashes ($ requestUri );
152
+ $ requestUri = $ this ->removeRepeatedSlashes ($ requestUri );
153
153
$ parsedRequestUri = explode ('? ' , $ requestUri , 2 );
154
154
$ queryString = !isset ($ parsedRequestUri [1 ]) ? '' : '? ' . $ parsedRequestUri [1 ];
155
155
$ baseUrl = $ this ->getBaseUrl ();
@@ -172,7 +172,7 @@ public function setPathInfo($pathInfo = null)
172
172
* @param string $pathInfo
173
173
* @return string
174
174
*/
175
- private function removeRepitedSlashes ($ pathInfo )
175
+ private function removeRepeatedSlashes ($ pathInfo )
176
176
{
177
177
$ firstChar = (string )substr ($ pathInfo , 0 , 1 );
178
178
if ($ firstChar == '/ ' ) {
You can’t perform that action at this time.
0 commit comments