=')) { if (version_compare($version, '1.12') >= 0) $eeVersion = 12; else if (version_compare($version, '1.11') >= 0) $eeVersion = 11; else if (version_compare($version, '1.10') >= 0) $eeVersion = 10; else if (version_compare($version, '1.7') >= 0 && !self::isEnterpriseEdition()) $eeVersion = 12; //CE 1.7, EE unknown at present else if (version_compare($version, '1.6') >= 0 && !self::isEnterpriseEdition()) $eeVersion = 11; //CE 1.6, EE unknown at present else if (version_compare($version, '1.9') >= 0) $eeVersion = 9; else if (version_compare($version, '1.8') >= 0) $eeVersion = 8; else if (version_compare($version, '1.7') >= 0) $eeVersion = 7; else if (version_compare($version, '1.6') >= 0) $eeVersion = 6; //EE 1.6 else $eeVersion = 8; // default to this if unsure, changed to assume is 1.4.1+ } else { if (version_compare($version, '1.5') >= 0) $eeVersion = 10; else if (version_compare($version, '1.4.2') >= 0) $eeVersion = 9; else if (version_compare($version, '1.4.1') >= 0) $eeVersion = 8; else if (version_compare($version, '1.4.0') >= 0) $eeVersion = 7; else if (version_compare($version, '1.3.2.4') >= 0) $eeVersion = 6; else $eeVersion = 8; // default to this if unsure, changed to assume is 1.4.1+ } return $eeVersion; } public static function isEnterpriseEdition() { if (!Mage::getConfig()->getNode('modules/Enterprise_Cms')) { return false; } return true; } public function isDebug($moduleName) { $path = 'wsalogmenu/modules_disable_logger/'.$moduleName; return Mage::getStoreConfig($path) ? true : false; } }