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 99use Magento \Customer \Model \AccountManagement ;
1010use Magento \Framework \App \ObjectManager ;
1111use Magento \Newsletter \Model \Config ;
12+ use Magento \Store \Model \ScopeInterface ;
1213
1314/**
1415 * Customer register form block
@@ -184,7 +185,7 @@ public function getRegion()
184185 public function isNewsletterEnabled ()
185186 {
186187 return $ this ->_moduleManager ->isOutputEnabled ('Magento_Newsletter ' )
187- && $ this ->newsLetterConfig ->isActive ();
188+ && $ this ->newsLetterConfig ->isActive (ScopeInterface:: SCOPE_STORE );
188189 }
189190
190191 /**
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public function __construct(
4141 * @param string $scopeType
4242 * @return bool
4343 */
44- public function isActive (string $ scopeType = \ Magento \ Store \ Model \ScopeInterface:: SCOPE_STORE ): bool
44+ public function isActive (string $ scopeType = ScopeConfigInterface:: SCOPE_TYPE_DEFAULT ): bool
4545 {
4646 return $ this ->scopeConfig ->isSetFlag (self ::XML_PATH_NEWSLETTER_ACTIVE , $ scopeType );
4747 }
You can’t perform that action at this time.
0 commit comments