Skip to content

Commit

Permalink
function renames for clarity and adherence to coding standard
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1344 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Julian Fitzell committed Aug 25, 2002
1 parent 05056c6 commit 1cb9800
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion account_update.php
Expand Up @@ -33,7 +33,7 @@

# check that the username is unique
if ( $f_old_username != $f_username &&
false == user_name_unique( $f_username ) ) {
false == user_is_name_unique( $f_username ) ) {
print_mantis_error( ERROR_USERNAME_NOT_UNIQUE );
}

Expand Down
4 changes: 2 additions & 2 deletions core/project_api.php
Expand Up @@ -6,7 +6,7 @@
# See the files README and LICENSE for details

# --------------------------------------------------------
# $Id: project_api.php,v 1.1 2002-08-25 20:23:18 jfitzell Exp $
# $Id: project_api.php,v 1.2 2002-08-25 20:26:03 jfitzell Exp $
# --------------------------------------------------------

###########################################################################
Expand All @@ -32,7 +32,7 @@ function project_ensure_exists( $p_project_id ) {
}
# --------------------
# check to see if project exists by name
function project_is_unique( $p_name ) {
function project_is_name_unique( $p_name ) {
global $g_mantis_project_table;

$query ="SELECT COUNT(*) ".
Expand Down
4 changes: 2 additions & 2 deletions core/user_api.php
Expand Up @@ -6,7 +6,7 @@
# See the files README and LICENSE for details

# --------------------------------------------------------
# $Id: user_api.php,v 1.5 2002-08-25 20:23:18 jfitzell Exp $
# $Id: user_api.php,v 1.6 2002-08-25 20:26:03 jfitzell Exp $
# --------------------------------------------------------

###########################################################################
Expand Down Expand Up @@ -966,7 +966,7 @@ function get_reported_open_bug_count( $p_project_id, $p_cookie_str ) {
# --------------------
# returns true if the username is unique, false if there is already a user
# with that username
function user_name_unique( $p_username ) {
function user_is_name_unique( $p_username ) {
global $g_mantis_user_table;

$c_username = addslashes($p_username);
Expand Down
2 changes: 1 addition & 1 deletion manage_create_new_user.php
Expand Up @@ -18,7 +18,7 @@
$c_username = addslashes($f_username);

# Check for duplicate username
if ( ! user_name_unique( $f_username ) ) {
if ( ! user_is_name_unique( $f_username ) ) {
print_mantis_error( ERROR_USERNAME_NOT_UNIQUE );
}

Expand Down
2 changes: 1 addition & 1 deletion signup.php
Expand Up @@ -28,7 +28,7 @@
}

# Check for duplicate username
if ( ! user_name_unique( $f_username ) ) {
if ( ! user_is_name_unique( $f_username ) ) {
print_mantis_error( ERROR_USERNAME_NOT_UNIQUE );
}

Expand Down

0 comments on commit 1cb9800

Please sign in to comment.