Skip to content

Commit

Permalink
Rename spam_check() to antispam_check()
Browse files Browse the repository at this point in the history
This matches our naming convention for APIs.
  • Loading branch information
vboctor committed Apr 18, 2015
1 parent 292db25 commit 56859c9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/antispam_api.php
Expand Up @@ -35,7 +35,7 @@
* user is determined to demonstrate spammy behavior, this method will trigger an
* error and exit the script.
*/
function spam_check() {
function antispam_check() {
if( OFF == config_get_global( 'allow_signup' ) ) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion core/bug_api.php
Expand Up @@ -462,7 +462,7 @@ function validate( $p_update_extended = true ) {
function create() {
self::validate( true );

spam_check();
antispam_check();

# check due_date format
if( is_blank( $this->due_date ) ) {
Expand Down
2 changes: 1 addition & 1 deletion core/bugnote_api.php
Expand Up @@ -189,7 +189,7 @@ function bugnote_add( $p_bug_id, $p_bugnote_text, $p_time_tracking = '0:00', $p_
$c_date_submitted = $p_date_submitted <= 0 ? db_now() : (int)$p_date_submitted;
$c_last_modified = $p_last_modified <= 0 ? db_now() : (int)$p_last_modified;

spam_check();
antispam_check();

if( REMINDER !== $p_type ) {
# Check if this is a time-tracking note
Expand Down
2 changes: 1 addition & 1 deletion core/tag_api.php
Expand Up @@ -572,7 +572,7 @@ function tag_get_bugs_attached( $p_tag_id ) {
* @return boolean
*/
function tag_bug_attach( $p_tag_id, $p_bug_id, $p_user_id = null ) {
spam_check();
antispam_check();

access_ensure_bug_level( config_get( 'tag_attach_threshold' ), $p_bug_id, $p_user_id );

Expand Down

0 comments on commit 56859c9

Please sign in to comment.