Skip to content

Commit d0f7d26

Browse files
author
Jan Petr
authored
Merge pull request #720 from algolia/16_compatibility
Compatibility with version 1.6.X, where getEdition() method and editi…
2 parents 7846c30 + 85a7079 commit d0f7d26

File tree

1 file changed

+4
-0
lines changed
  • app/code/community/Algolia/Algoliasearch/Helper

1 file changed

+4
-0
lines changed

app/code/community/Algolia/Algoliasearch/Helper/Data.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,10 @@ public function escapeJsTranslatedString(Mage_Core_Block_Template $template, $st
633633

634634
public function isX3Version()
635635
{
636+
if (method_exists('Mage', 'getEdition') === false) {
637+
return false;
638+
}
639+
636640
return Mage::EDITION_ENTERPRISE === Mage::getEdition() && version_compare(Mage::getVersion(), '1.14.3', '>=') ||
637641
Mage::EDITION_COMMUNITY === Mage::getEdition() && version_compare(Mage::getVersion(), '1.9.3', '>=');
638642
}

0 commit comments

Comments
 (0)