Skip to content

Commit a323133

Browse files
authored
Merge pull request #669 from ivanhrytsaim/13153-breaks-integration-tests
13153-breaks-integration-tests
2 parents 7a5b153 + edf9ebc commit a323133

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Plugin/Magento/Framework/App/Config/ScopeConfigInterfacePlugin.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Magefan\Blog\Plugin\Magento\Framework\App\Config;
44

55
use Magento\Framework\App\Config\ScopeConfigInterface;
6-
use Magento\Framework\App\RequestInterface;
7-
use Magefan\Blog\Model\Config;
6+
use Magento\Framework\App\RequestInterface\Proxy as RequestInterface;
7+
use Magefan\Blog\Model\Config\Proxy as Config;
88

99
class ScopeConfigInterfacePlugin
1010
{
@@ -54,7 +54,7 @@ public function __construct(
5454
*/
5555
public function afterGetValue($subject, $result, $path, $scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode = null)
5656
{
57-
if ($path == 'mageworx_seo/base/canonical/canonical_ignore_pages' && $this->request->getModuleName() == 'blog') {
57+
if ($path == 'mageworx_seo/base/canonical/canonical_ignore_pages' && $this->request->getModuleName() == 'blog' && $this->config->isEnabled()) {
5858
$blogPages = explode(",", $this->config->getConfig(Config::XML_PATH_DISPLAY_CANONICAL_TAG_FOR));
5959

6060
if (in_array('all', $blogPages)) {

0 commit comments

Comments
 (0)