Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixes #16848: Remove main page from main menu when news feature is OFF
The main page was really designed to include the news which has been deprecated for a while. Hence, the main page is useless for most users. This change hides it unless the news feature is ON.

This is until the news feature is completely removed.
  • Loading branch information
vboctor committed Jan 28, 2014
1 parent 56fcd1c commit 2d9acc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/html_api.php
Expand Up @@ -745,7 +745,9 @@ function print_menu() {
$t_menu_options = array();

# Main Page
$t_menu_options[] = '<a href="' . helper_mantis_url( 'main_page.php' ) . '">' . lang_get( 'main_link' ) . '</a>';
if ( config_get( 'news_enabled' ) == ON ) {
$t_menu_options[] = '<a href="' . helper_mantis_url( 'main_page.php' ) . '">' . lang_get( 'main_link' ) . '</a>';
}

# Plugin / Event added options
$t_event_menu_options = event_signal( 'EVENT_MENU_MAIN_FRONT' );
Expand Down

0 comments on commit 2d9acc8

Please sign in to comment.