Index: branches/5.1.x/core/units/sections/sections_config.php =================================================================== diff -u -r13086 -r14110 --- branches/5.1.x/core/units/sections/sections_config.php (.../sections_config.php) (revision 13086) +++ branches/5.1.x/core/units/sections/sections_config.php (.../sections_config.php) (revision 14110) @@ -1,6 +1,6 @@ 'in-portal:tools', 'icon' => 'import_data', 'label' => 'la_tab_ImportData', - 'url' => Array ('t' => 'tools/import1'), - 'onclick' => 'direct_edit(\'adm\', this.href);', + 'url' => Array ('t' => 'tools/import1'), 'permissions' => Array ('view'), 'priority' => 3, 'type' => stTREE, Index: branches/5.1.x/core/units/admin/admin_events_handler.php =================================================================== diff -u -r13956 -r14110 --- branches/5.1.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 13956) +++ branches/5.1.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 14110) @@ -1,6 +1,6 @@ Application->ConfigValue('AdvancedUserManagement')) { - $section_ajustments = $this->Application->getUnitOption($event->Prefix, 'SectionAdjustments'); - if (!$section_ajustments) { - $section_ajustments = Array (); - } + $section_ajustments = $this->Application->getUnitOption($event->Prefix, 'SectionAdjustments', Array()); + if ( !$this->Application->ConfigValue('AdvancedUserManagement') ) { $section_ajustments['in-portal:user_groups'] = 'remove'; + } - $this->Application->setUnitOption($event->Prefix, 'SectionAdjustments', $section_ajustments); + if ( $this->Application->ConfigValue('UsePopups') ) { // 1 - pop-up, 2 - modal + $section_ajustments['in-portal:main_import'] = Array('onclick' => 'direct_edit(\'adm\', this.href);'); } + + $this->Application->setUnitOption($event->Prefix, 'SectionAdjustments', $section_ajustments); } /** Index: branches/5.1.x/core/units/configuration/configuration_event_handler.php =================================================================== diff -u -r13470 -r14110 --- branches/5.1.x/core/units/configuration/configuration_event_handler.php (.../configuration_event_handler.php) (revision 13470) +++ branches/5.1.x/core/units/configuration/configuration_event_handler.php (.../configuration_event_handler.php) (revision 14110) @@ -1,6 +1,6 @@ GetDBField('VariableValue'); $watch_variables = Array ( 'Require_AdminSSL', 'AdminSSL_URL', 'AdvancedUserManagement', - 'Site_Name', 'AdminConsoleInterface' + 'Site_Name', 'AdminConsoleInterface', 'UsePopups' ); if (in_array($variable_name, $watch_variables)) { @@ -250,7 +250,7 @@ // reset cache $changed = $this->Application->GetVar($event->getPrefixSpecial() . '_changed', Array ()); $require_refresh = Array ( - 'AdvancedUserManagement', 'Site_Name', 'AdminConsoleInterface' + 'AdvancedUserManagement', 'Site_Name', 'AdminConsoleInterface', 'UsePopups' ); $refresh_sections = array_intersect($require_refresh, $changed);