Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont show disabled modules in "Disable Modules Output" config #4305

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,16 @@ public function render(Varien_Data_Form_Element_Abstract $element)
{
$html = $this->_getHeaderHtml($element);

$modules = array_keys((array)Mage::getConfig()->getNode('modules')->children());
$modules = (array)Mage::getConfig()->getNode('modules')->children();
/** @var Mage_Core_Model_Config_Element $module */
foreach ($modules as $index => $module) {
$module = $module->asArray();
if ($module['active'] === 'false') {
unset($modules[$index]);
}
}

$modules = array_keys($modules);

$dispatchResult = new Varien_Object($modules);
Mage::dispatchEvent(
Expand Down
Loading