Index: branches/unlabeled/unlabeled-1.27.2/core/units/admin/admin_tag_processor.php =================================================================== diff -u -r6936 -r7000 --- branches/unlabeled/unlabeled-1.27.2/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 6936) +++ branches/unlabeled/unlabeled-1.27.2/core/units/admin/admin_tag_processor.php (.../admin_tag_processor.php) (revision 7000) @@ -208,11 +208,16 @@ return ''; } + $debug_mode = $this->Application->isDebugMode(); // cache this for performance ksort($section_data['children'], SORT_NUMERIC); foreach ($section_data['children'] as $section_name) { $params['section_name'] = $section_name; $section_data =& $sections_helper->getSectionData($section_name); - + if (!$debug_mode && isset($section_data['debug_only']) && $section_data['debug_only']) { + // don't show section for debug mode only without debug mode turned on + continue; + } + if (isset($section_data['tabs_only']) && $section_data['tabs_only']) { $perm_status = false; $folder_label = $section_data['label']; Index: branches/unlabeled/unlabeled-1.20.2/core/units/admin/admin_config.php =================================================================== diff -u -r6889 -r7000 --- branches/unlabeled/unlabeled-1.20.2/core/units/admin/admin_config.php (.../admin_config.php) (revision 6889) +++ branches/unlabeled/unlabeled-1.20.2/core/units/admin/admin_config.php (.../admin_config.php) (revision 7000) @@ -23,31 +23,28 @@ ), 'Sections' => Array( - 'in-portal:root' => Array( - 'parent' => null, - 'icon' => 'site', - 'label' => $this->Application->ConfigValue('Site_Name'), - 'url' => Array('t' => 'sections_list', 'pass' => 'm', 'pass_section' => true, 'no_amp' => 1), - 'permissions' => Array('advanced:admin_login', 'advanced:front_login'), - 'priority' => 0, - 'type' => stTREE, - ), - ), - - ); - - - $application =& kApplication::Instance(); - if ($application->isDebugMode()) { - $config['Sections']['in-portal:service'] = Array( + 'in-portal:root' => Array( + 'parent' => null, + 'icon' => 'site', + 'label' => $this->Application->ConfigValue('Site_Name'), + 'url' => Array('t' => 'sections_list', 'pass' => 'm', 'pass_section' => true, 'no_amp' => 1), + 'permissions' => Array('advanced:admin_login', 'advanced:front_login'), + 'priority' => 0, + 'type' => stTREE, + ), + + 'in-portal:service' => Array( 'parent' => 'in-portal:tools', 'icon' => 'in-portal:conf_general', 'label' => 'la_tab_Service', - 'url' => Array('t' => 'tools/system_tools', 'pass' => 'm'), + 'url' => Array('t' => 'in-portal/tools/system_tools', 'pass' => 'm'), 'permissions' => Array('view'), 'priority' => 10, + 'debug_only' => true, 'type' => stTREE, - ); - } + ), + ), + ); + ?> \ No newline at end of file