diff --git a/core/html_api.php b/core/html_api.php index f2837b2b49..0a3344779a 100644 --- a/core/html_api.php +++ b/core/html_api.php @@ -730,7 +730,9 @@ function print_menu() { $t_menu_options = array(); # Main Page - $t_menu_options[] = '' . lang_get( 'main_link' ) . ''; + if ( config_get( 'news_enabled' ) == ON ) { + $t_menu_options[] = '' . lang_get( 'main_link' ) . ''; + } # Plugin / Event added options $t_event_menu_options = event_signal( 'EVENT_MENU_MAIN_FRONT' ); diff --git a/view_user_page.php b/view_user_page.php index 3553bed048..c7399240c3 100644 --- a/view_user_page.php +++ b/view_user_page.php @@ -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(); ?> @@ -109,6 +109,15 @@ + +
+ + + + + +
+