public function checkExtensions() { $modules = array_keys((array) Mage::getConfig()->getNode('modules')->children()); sort($modules); $magentoPlatform = CommerceLab_News_Helper_Versions::getPlatform(); foreach ($modules as $extensionName) { if (strstr($extensionName, 'CommerceLab_') === false) { continue; } if ($extensionName == 'CommerceLab_Core' || $extensionName == 'CommerceLab_All') { continue; } if ($platformNode = $this->getExtensionPlatform($extensionName)) { $extensionPlatform = CommerceLab_News_Helper_Versions::convertPlatform($platformNode); if ($extensionPlatform < $magentoPlatform) { $this->disableExtensionOutput($extensionName); Mage::getSingleton('adminhtml/session')->addError(Mage::helper('clnews')->__('Platform version is not correct for News module!')); return; } } } return $this; }