Skip to content

Commit

Permalink
Rename profile_get_row_direct() to profile_get_row()
Browse files Browse the repository at this point in the history
Fixes #27258
  • Loading branch information
dregad committed Sep 18, 2020
1 parent e4a9f3e commit 0baeffc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion account_prof_edit_page.php
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion api/soap/mc_api.php
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions core/profile_api.php
Expand Up @@ -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 );
Expand All @@ -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
Expand Down Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion print_all_bug_page_word.php
Expand Up @@ -449,7 +449,7 @@
<?php
# account profile description
if( $t_bug->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'] );

?>
Expand Down

0 comments on commit 0baeffc

Please sign in to comment.