Skip to content

Commit

Permalink
Correct documentation of function user_get_expanded_name_from_row
Browse files Browse the repository at this point in the history
Issue #24139
  • Loading branch information
atrol committed May 30, 2018
1 parent 1b6ba0f commit 97fff18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/user_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ function user_get_name( $p_user_id ) {
}

/**
* Show realnames be shown to logged in user?
* Should realnames be shown to logged in user?
*
* @return bool true to show, false otherwise.
*/
Expand All @@ -1018,7 +1018,8 @@ function user_get_name_from_row( array $p_user_row ) {
}

/**
* Get display name in format "username (realname)"
* Return display name in format "realname (username)" if user_show_realname() is true and
* realname is not empty otherwise return username
*
* @param array $p_user_row The user row with 'realname' and 'username' fields
* @return string display name
Expand Down

0 comments on commit 97fff18

Please sign in to comment.