File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 9
9
use Magento \Customer \Model \AccountManagement ;
10
10
use Magento \Framework \App \ObjectManager ;
11
11
use Magento \Newsletter \Model \Config ;
12
+ use Magento \Store \Model \ScopeInterface ;
12
13
13
14
/**
14
15
* Customer register form block
@@ -184,7 +185,7 @@ public function getRegion()
184
185
public function isNewsletterEnabled ()
185
186
{
186
187
return $ this ->_moduleManager ->isOutputEnabled ('Magento_Newsletter ' )
187
- && $ this ->newsLetterConfig ->isActive ();
188
+ && $ this ->newsLetterConfig ->isActive (ScopeInterface:: SCOPE_STORE );
188
189
}
189
190
190
191
/**
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function __construct(
41
41
* @param string $scopeType
42
42
* @return bool
43
43
*/
44
- public function isActive (string $ scopeType = \ Magento \ Store \ Model \ScopeInterface:: SCOPE_STORE ): bool
44
+ public function isActive (string $ scopeType = ScopeConfigInterface:: SCOPE_TYPE_DEFAULT ): bool
45
45
{
46
46
return $ this ->scopeConfig ->isSetFlag (self ::XML_PATH_NEWSLETTER_ACTIVE , $ scopeType );
47
47
}
You can’t perform that action at this time.
0 commit comments