]> git.mxchange.org Git - mailer.git/blobdiff - inc/filter/bonus_filter.php
Code style changed, ext-user continued:
[mailer.git] / inc / filter / bonus_filter.php
index 63aafff99354db6470c986d60810f664a774cadc..0403890eaec5f6756231430ca346a3a97efd3d33 100644 (file)
@@ -50,7 +50,7 @@ function FILTER_ADD_LOGIN_BONUS ($filterData) {
        } // END - if
 
        // Bonus is not given by default ;-)
        } // END - if
 
        // Bonus is not given by default ;-)
-       $bonus = false;
+       $bonus = FALSE;
        if ((isExtensionInstalledAndNewer('sql_patches', '0.2.8')) && (isBonusRallyeActive()) && (getConfig('include_bonus_login') == 'Y')) {
                // Update last login if far enougth away
                // @TODO This query isn't right, it will only update if the user was for a longer time away!
        if ((isExtensionInstalledAndNewer('sql_patches', '0.2.8')) && (isBonusRallyeActive()) && (getConfig('include_bonus_login') == 'Y')) {
                // Update last login if far enougth away
                // @TODO This query isn't right, it will only update if the user was for a longer time away!
@@ -71,7 +71,7 @@ LIMIT 1',
                $bonus = (!SQL_HASZEROAFFECTED());
        } // END - if
 
                $bonus = (!SQL_HASZEROAFFECTED());
        } // END - if
 
-       if (($bonus === true) && (getRequestElement('do') == 'bonus')) {
+       if (($bonus === TRUE) && (getRequestElement('do') == 'bonus')) {
                // Output message with added points
                $GLOBALS['message'] .= '<div class="tiny">{--MEMBER_BONUS_LOGIN_BONUS_ADDED--}</div>';
        } else {
                // Output message with added points
                $GLOBALS['message'] .= '<div class="tiny">{--MEMBER_BONUS_LOGIN_BONUS_ADDED--}</div>';
        } else {
@@ -91,7 +91,7 @@ function FILTER_GENERATE_BONUS_MAIL_LINKS ($filterData) {
        // Is the type 'bid'?
        if ($filterData['type'] == 'bid') {
                // Load template
        // Is the type 'bid'?
        if ($filterData['type'] == 'bid') {
                // Load template
-               $filterData['__output'] .= loadTemplate('admin_links_bonus_mail', true, $filterData);
+               $filterData['__output'] .= loadTemplate('admin_links_bonus_mail', TRUE, $filterData);
        } // END - if
 
        // Return data
        } // END - if
 
        // Return data
@@ -133,7 +133,7 @@ function FILTER_BONUS_USER_REGISTRATION_ADD_SQL_COLUMNS ($filterData) {
 
        // Return filter data
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
 
        // Return filter data
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
-       //* NOISY-DEBUG: */ print __FUNCTION__.':filterData=<pre>'.print_r($filterData,true).'</pre>';
+       //* NOISY-DEBUG: */ print __FUNCTION__.':filterData=<pre>'.print_r($filterData,TRUE).'</pre>';
        return $filterData;
 }
 
        return $filterData;
 }
 
@@ -148,7 +148,7 @@ function FILTER_SEND_BONUS_NOTIFICATIONS ($filterData) {
 
        // Return filter data
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
 
        // Return filter data
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
-       //* NOISY-DEBUG: */ print __FUNCTION__.':filterData=<pre>'.print_r($filterData,true).'</pre>';
+       //* NOISY-DEBUG: */ print __FUNCTION__.':filterData=<pre>'.print_r($filterData,TRUE).'</pre>';
        return $filterData;
 }
 
        return $filterData;
 }