Created
November 5, 2015 10:34
-
-
Save gplanchat/8211fafe76afeda61d5b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/web/app/code/core/Mage/Core/Model/Config.php b/web/app/code/core/Mage/Core/Model/Config.php | |
index bc68381..2e7c009 100644 | |
--- a/web/app/code/core/Mage/Core/Model/Config.php | |
+++ b/web/app/code/core/Mage/Core/Model/Config.php | |
@@ -843,12 +843,7 @@ class Mage_Core_Model_Config extends Mage_Core_Model_Config_Base | |
foreach ($modules as $moduleName => $moduleProps) { | |
$depends = $moduleProps['depends']; | |
foreach ($moduleProps['depends'] as $depend => $true) { | |
- if (!$moduleProps['active']) { | |
- $depends = []; | |
- continue; | |
- } | |
- | |
- if ((!isset($modules[$depend])) || empty($modules[$depend]['active'])) { | |
+ if ($moduleProps['active'] && ((!isset($modules[$depend])) || empty($modules[$depend]['active']))) { | |
Mage::throwException( | |
Mage::helper('core')->__('Module "%1$s" requires module "%2$s".', $moduleName, $depend) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment