]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/bonus_functions.php
Functions renamed
[mailer.git] / inc / libs / bonus_functions.php
index b1e577af0a63df4b89a4f7363474ec843856b299..286a79e3ee117ec9ed933d41dad273967c8d1545 100644 (file)
@@ -14,8 +14,6 @@
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
@@ -201,7 +199,7 @@ LIMIT 1",
                // @TODO Move this HTML to a template
                $OUT = '<tr>
   <td colspan="3" align="center" height="30" class="bottom">
-    <div class="guest_failed">' . getMaskedMessage('MEMBER_BONUS_NO_RANKS', $data) . '</div>
+    <div class="notice">' . getMaskedMessage('MEMBER_BONUS_NO_RANKS', $data) . '</div>
   </td>
 </tr>';
        }
@@ -305,7 +303,7 @@ LIMIT 1',
                $GLOBALS['message'] .= '<div class="tiny">{--MEMBER_BONUS_LOGIN_BONUS_ADDED--}</div>';
        } elseif (isExtensionActive('bonus')) {
                // No login bonus added!
-               $GLOBALS['message'] .= '<div class="member_failed">{--MEMBER_BONUS_LOGIN_BONUS_NOT_ADDED--}</div>';
+               $GLOBALS['message'] .= '<div class="notice">{--MEMBER_BONUS_LOGIN_BONUS_NOT_ADDED--}</div>';
        }
 }
 
@@ -340,13 +338,13 @@ function isBonusNewMemberNotifyEnabled () {
 // Getter for bonus_timeout
 function getBonusTimeout () {
        // Do we have cache?
-       if (!isset($GLOBALS['bonus_timeout'])) {
+       if (!isset($GLOBALS[__FUNCTION__])) {
                // Determine it
-               $GLOBALS['bonus_timeout'] = getConfig('bonus_timeout');
+               $GLOBALS[__FUNCTION__] = getConfig('bonus_timeout');
        } // END - if
 
        // Return cache
-       return $GLOBALS['bonus_timeout'];
+       return $GLOBALS[__FUNCTION__];
 }
 
 // [EOF]