Permalink
Browse files

Fixed references to class constants (props @davejesch)

  • Loading branch information...
brandondove committed Sep 21, 2012
1 parent 82479e5 commit 3a8ce95aceb3525e680ae9b01f96c6a3c6a82064
Showing with 2 additions and 2 deletions.
  1. +2 −2 pj-buddypress-honeypot.php
@@ -59,7 +59,7 @@ function __construct() {
function add_honeypot() {
echo '<div style="display: none;">';
- echo '<input type="text" name="'.apply_filters( 'bppj_honeypot_name', BPPJ_HONEYPOT_NAME ).'" id="'.apply_filters( 'bppj_honeypot_id', BPPJ_HONEYPOT_ID ).'" />';
+ echo '<input type="text" name="'.apply_filters( 'bppj_honeypot_name', self::BPPJ_HONEYPOT_NAME ).'" id="'.apply_filters( 'bppj_honeypot_id', self::BPPJ_HONEYPOT_ID ).'" />';
echo '</div>';
}
@@ -73,7 +73,7 @@ function add_honeypot() {
function check_honeypot( $result = array() ) {
global $bp;
- $bppj_honeypot_name = apply_filters( 'bppj_honeypot_name', BPPJ_HONEYPOT_NAME );
+ $bppj_honeypot_name = apply_filters( 'bppj_honeypot_name', self::BPPJ_HONEYPOT_NAME );
if( isset( $_POST[$bppj_honeypot_name] ) && !empty( $_POST[$bppj_honeypot_name] ) )
$result['errors']->add( 'pjbp_honeypot', apply_filters( 'bppj_honeypot_fail_message', __( "You're totally a spammer. Go somewhere else with your spammy ways." ) ) );

0 comments on commit 3a8ce95

Please sign in to comment.