Index: branches/RC/core/units/general/helpers/sections_helper.php =================================================================== diff -u -r9258 -r9776 --- branches/RC/core/units/general/helpers/sections_helper.php (.../sections_helper.php) (revision 9258) +++ branches/RC/core/units/general/helpers/sections_helper.php (.../sections_helper.php) (revision 9776) @@ -33,24 +33,20 @@ */ function BuildTree() { - $unit_config_reader = false; $data = $this->Conn->GetRow('SELECT Data, Cached FROM '.TABLE_PREFIX.'Cache WHERE VarName = "sections_parsed"'); if ($data) { $this->Tree = unserialize($data['Data']); return ; } - $this->Application->UnitConfigReader->includeConfigFiles(MODULES_PATH); - $this->Application->UnitConfigReader->AfterConfigRead(); + $this->Application->UnitConfigReader->ReReadConfigs(); + $this->Tree = Array(); - if (!$unit_config_reader) { - $unit_config_reader =& $this->Application->recallObject('kUnitConfigReader'); - } // 1. build base tree (don't update parent with children list yet) - $prefixes = array_keys($unit_config_reader->configData); + $prefixes = array_keys($this->Application->UnitConfigReader->configData); foreach ($prefixes as $prefix) { - $config =& $unit_config_reader->configData[$prefix]; + $config =& $this->Application->UnitConfigReader->configData[$prefix]; $sections = getArrayValue($config, 'Sections'); if (!$sections) continue; @@ -100,7 +96,7 @@ // 2. apply section ajustments foreach ($prefixes as $prefix) { - $config =& $unit_config_reader->configData[$prefix]; + $config =& $this->Application->UnitConfigReader->configData[$prefix]; $section_ajustments = getArrayValue($config, 'SectionAdjustments'); if (!$section_ajustments) continue;