Index: branches/5.3.x/core/units/helpers/sections_helper.php =================================================================== diff -u -N -r15698 -r16178 --- branches/5.3.x/core/units/helpers/sections_helper.php (.../sections_helper.php) (revision 15698) +++ branches/5.3.x/core/units/helpers/sections_helper.php (.../sections_helper.php) (revision 16178) @@ -1,6 +1,6 @@ Tree = Array (); // 1. build base tree (don't update parent with children list yet) - - // 1.1. process prefixes without priority - $prioritized_prefixes = Array (); - $prefixes = $this->Application->UnitConfigReader->getPrefixes(); - - foreach ($prefixes as $prefix) { - $config = $this->Application->getUnitConfig($prefix); - - if ( $config->getConfigPriority() !== false ) { - $prioritized_prefixes[$prefix] = $config->getConfigPriority(); - continue; - } - + foreach ( $this->Application->UnitConfigReader->getUnitConfigsWithoutPriority() as $prefix ) { $this->_processPrefixSections($prefix); } - // 2. process prefixes with priority - asort($prioritized_prefixes); - foreach ($prioritized_prefixes as $prefix => $priority) { + foreach ( $this->Application->UnitConfigReader->getUnitConfigsWithPriority() as $prefix ) { $this->_processPrefixSections($prefix); } // 2. apply section adjustments - foreach ($prefixes as $prefix) { + foreach ( $this->Application->UnitConfigReader->getPrefixes() as $prefix ) { $config = $this->Application->getUnitConfig($prefix); $section_adjustments = $config->getSectionAdjustments(); @@ -376,4 +362,4 @@ return $ret; } - } \ No newline at end of file + }