We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 363ee27 + cabad42 commit c9cf2cfCopy full SHA for c9cf2cf
app/code/Magento/Wishlist/Helper/Data.php
@@ -490,14 +490,14 @@ public function getListUrl($wishlistId = null)
490
*/
491
public function isAllow()
492
{
493
- if ($this->_moduleManager->isOutputEnabled($this->_getModuleName()) && $this->scopeConfig->getValue(
+ $isOutputEnabled = $this->_moduleManager->isOutputEnabled($this->_getModuleName());
494
+
495
+ $isWishlistActive = $this->scopeConfig->getValue(
496
'wishlist/general/active',
497
\Magento\Store\Model\ScopeInterface::SCOPE_STORE
- )
- ) {
498
- return true;
499
- }
500
- return false;
+ );
+ return $isOutputEnabled && $isWishlistActive;
501
}
502
503
/**
0 commit comments