Index: branches/5.2.x/core/units/admin/admin_events_handler.php =================================================================== diff -u -N -r14642 -r14685 --- branches/5.2.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 14642) +++ branches/5.2.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 14685) @@ -1,6 +1,6 @@ Application->getUnitOption($event->Prefix, 'SectionAdjustments', Array()); + $section_adjustments = $this->Application->getUnitOption($event->Prefix, 'SectionAdjustments', Array()); if ( !$this->Application->ConfigValue('AdvancedUserManagement') ) { - $section_ajustments['in-portal:user_groups'] = 'remove'; + $section_adjustments['in-portal:user_groups'] = 'remove'; } - if ( $this->Application->ConfigValue('UsePopups') ) { // 1 - pop-up, 2 - modal - $section_ajustments['in-portal:main_import'] = Array('onclick' => 'direct_edit(\'adm\', this.href);'); - } - - $section_ajustments['in-portal:root'] = Array ( + $section_adjustments['in-portal:root'] = Array ( 'label' => $this->Application->ConfigValue('Site_Name') ); - $this->Application->setUnitOption($event->Prefix, 'SectionAdjustments', $section_ajustments); + $this->Application->setUnitOption($event->Prefix, 'SectionAdjustments', $section_adjustments); } /**