magento/magento2 — pull request #112 by peterjaap (2012-11-01 10:43:27+00:00)
Title: Add the 'edition' parameter to getVersion() and getVersionInfo()

Add the 'edition' parameter to getVersion() and getVersionInfo() to make it easier for developers to distinguish between Community and Enterprise editions.

Right now we have to do something like this;

```
$enterprise = Mage::getConfig()->getNode('modules/Enterprise_PageCache/active');
$checkForVersion = ($enterprise ? '1.12' : '1.7.0.0');
if(version_compare(Mage::getVersion(), $checkForVersion, '<')) {
// do stuff for CE < 1.7.0.0 & EE < 1.12
} else {
// do stuff for CE > 1.7.0.0 & EE > 1.12
}
```
Which is not 100% safe since the PageCache extension can be deactivated in an EE installation.