diff --git a/index.php b/index.php index d6c16d6e68..9cc4f59947 100644 --- a/index.php +++ b/index.php @@ -17,7 +17,6 @@ require_once 'main/inc/global.inc.php'; require_once api_get_path(LIBRARY_PATH).'userportal.lib.php'; require_once 'main/chat/chat_functions.lib.php'; - // The section (for the tabs). $this_section = SECTION_CAMPUS; diff --git a/main/admin/configure_homepage.php b/main/admin/configure_homepage.php index 7ca5b5e2f5..2d5698b0f9 100644 --- a/main/admin/configure_homepage.php +++ b/main/admin/configure_homepage.php @@ -14,7 +14,6 @@ api_protect_admin_script(); require_once api_get_path(LIBRARY_PATH).'WCAG/WCAG_rendering.php'; require_once api_get_path(LIBRARY_PATH).'fileUpload.lib.php'; - global $_configuration; $action = Security::remove_XSS($_GET['action']); @@ -336,7 +335,7 @@ if (!empty($action)) { } } - $class_add_in_tab = ''; + $class_add_in_tab = 'show_menu'; if (!$add_in_tab) { $class_add_in_tab = 'class="hide_menu"'; } @@ -628,15 +627,11 @@ switch ($action) {
- '; - Display::display_normal_message($errorMsg); - //echo ''; + Display::display_normal_message($errorMsg); } ?> - @@ -697,10 +692,11 @@ switch ($action) { } $target_blank_checkbox = & $form->addElement('checkbox', 'target_blank', null, get_lang('OpenInNewWindow'), 1); - - $form->addElement('checkbox', 'add_in_tab', null, get_lang('AddInMenu'), 1); - $default['add_in_tab'] = $add_in_tab; - + + if ($action == 'insert_tabs' || $action == 'edit_tabs') { + $form->addElement('checkbox', 'add_in_tab', null, get_lang('AddInMenu'), 1); + $default['add_in_tab'] = $add_in_tab; + } if ($target_blank) $target_blank_checkbox->setChecked(true); @@ -915,7 +911,7 @@ switch ($action) {
'.get_lang('LetThoseFieldsEmptyToHideTheNotice').''; ?>