Skip to content

Commit

Permalink
Prevent adding Conversion integration placeholder to non CMS page res…
Browse files Browse the repository at this point in the history
…ult.
  • Loading branch information
chris-pook committed Jan 13, 2020
1 parent 918a9bf commit a4be799
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ public function __construct(
*/
public function afterExecute(Index $subject, $result)
{
// Prevent adding placeholder to non CMS page result
if (!$result instanceof \Magento\Framework\View\Result\Page) {
return $result;
}

// Only continue if this integration is enabled
if ($this->dataHelper->getHomepageConversionMessageEnabled() == false) {
return $result;
Expand Down
2 changes: 1 addition & 1 deletion app/code/MentionMe/MentionMe/etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="MentionMe_MentionMe" setup_version="1.0.5">
<module name="MentionMe_MentionMe" setup_version="1.0.6">
<sequence>
</sequence>
</module>
Expand Down

0 comments on commit a4be799

Please sign in to comment.