Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email

Magento Forum

Mage_Core_Model_Config::_sortModuleDepends() - Same work done twice?? 
Jr. Member
Total Posts:  1
Joined:  2012-09-21

Hi there!

My name is Julian and I\’m new to Meganto developement. I just finished my first extension. Today I debugged through the core code and arrived at the above named method. I tried to understand what\’s happening and, now, ask my self if there is done some work twice:

The first two foreach-loops check wether no module depends on another non-present or non-active module. The third pair of foreach-loop again checks if no module depends an a module that does not exist which is in my opinion already checked in the first pair of foreach-loops.

Does anybody confirm that?

Magento version is

Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top