Skip to content

Commit

Permalink
Fix 0011452: [patch] Show link to main page only when the news featur…
Browse files Browse the repository at this point in the history
…e is enabled.
  • Loading branch information
mantis committed Feb 26, 2012
1 parent d2fb623 commit cf22f22
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 3 additions & 1 deletion core/html_api.php
Expand Up @@ -730,7 +730,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
13 changes: 11 additions & 2 deletions view_user_page.php
Expand Up @@ -69,8 +69,8 @@

# In case we're using LDAP to get the email address... this will pull out
# that version instead of the one in the DB
$u_email = user_get_email( $u_id );
$u_realname = user_get_realname( $u_id );
$u_email = user_get_email( $u_user_id );
$u_realname = user_get_realname( $u_user_id );

html_page_top();
?>
Expand Down Expand Up @@ -109,6 +109,15 @@
</span></span>
<span class="label-style"></span>
</div>

<div class="field-container">
<span class="display-label"><span><?php echo lang_get( 'last_visit' ) ?></span></span>
<span class="display-value"><span>
<?php echo date( config_get( 'normal_date_format' ), current_user_get_field( 'last_visit' ) ) ?>
</span></span>
<span class="label-style"></span>
</div>

<span class="section-links">
<?php if ( $t_can_manage ) { ?>
<span id="manage-user-link"><a href="<?php echo string_html_specialchars( 'manage_user_edit_page.php?user_id=' . $f_user_id ); ?>"><?php echo lang_get( 'manage_user' ); ?></a></span>
Expand Down

0 comments on commit cf22f22

Please sign in to comment.