diff --git a/account_prof_edit_page.php b/account_prof_edit_page.php index 22dc27181d..306da0f5c1 100644 --- a/account_prof_edit_page.php +++ b/account_prof_edit_page.php @@ -66,7 +66,7 @@ if( $t_global_profile ) { access_ensure_global_level( config_get( 'manage_global_profile_threshold' ) ); } -$t_row = profile_get_row_direct( $f_profile_id ); +$t_row = profile_get_row( $f_profile_id ); /** * @var $v_id diff --git a/api/soap/mc_api.php b/api/soap/mc_api.php index 91215ae5a7..4ca05ca01e 100644 --- a/api/soap/mc_api.php +++ b/api/soap/mc_api.php @@ -648,7 +648,7 @@ function mci_profile_as_array_by_id( $p_profile_id ) { } try { - $t_profile = profile_get_row_direct( $t_profile_id ); + $t_profile = profile_get_row( $t_profile_id ); } catch (ClientException $e) { return null; } diff --git a/core/profile_api.php b/core/profile_api.php index 43a5363941..733a427ebc 100644 --- a/core/profile_api.php +++ b/core/profile_api.php @@ -186,7 +186,7 @@ function profile_update( $p_user_id, $p_profile_id, $p_platform, $p_os, $p_os_bu * * @throws ClientException if the profile ID does not exist */ -function profile_get_row_direct( $p_profile_id ) { +function profile_get_row( $p_profile_id ) { $t_query = new DbQuery(); $t_query->sql( 'SELECT * FROM {user_profile} WHERE id=:profile_id' ); $t_query->bind( 'profile_id', $p_profile_id ); @@ -213,7 +213,7 @@ function profile_get_row_direct( $p_profile_id ) { * @throws ClientException if the profile ID does not exist */ function profile_get_name( $p_profile_id ) { - $t_profile = profile_get_row_direct( $p_profile_id ); + $t_profile = profile_get_row( $p_profile_id ); /** * @var string $v_platform * @var string $v_os @@ -329,6 +329,6 @@ function profile_get_default( $p_user_id ) { * @throws ClientException if the profile ID does not exist */ function profile_is_global( $p_profile_id ) { - $t_row = profile_get_row_direct( $p_profile_id ); + $t_row = profile_get_row( $p_profile_id ); return $t_row['user_id'] == ALL_USERS; } diff --git a/print_all_bug_page_word.php b/print_all_bug_page_word.php index ed6d0b1456..77ad32b67b 100644 --- a/print_all_bug_page_word.php +++ b/print_all_bug_page_word.php @@ -449,7 +449,7 @@ profile_id > 0 ) { - $t_profile_row = profile_get_row_direct( $t_bug->profile_id ); + $t_profile_row = profile_get_row( $t_bug->profile_id ); $t_profile_description = string_display( $t_profile_row['description'] ); ?>