New naming convention applied to many functions, see #118 for details
[mailer.git] / inc / modules / member / what-reflist.php
index 0ebafb38c36c80b710f6ada254b9cae9f8cc18a0..ec95e5364ffcf14716f217f493fa43f80aff6f21 100644 (file)
@@ -42,7 +42,7 @@ if (!defined('__SECURITY')) {
        require($INC);
 } elseif (!IS_MEMBER()) {
        // User is not logged in
-       LOAD_URL('modules.php?module=index');
+       redirectToUrl('modules.php?module=index');
 }
 
 // Add description as navigation point
@@ -66,13 +66,13 @@ if (SQL_NUMROWS($result) > 0) {
                $SW = 2;
 
                // Check for users ref in this level
-               foreach (GET_USER_REF_POINTS(getUserId(), $content['level']) as $refRow) {
+               foreach (getUserReferalPoints(getUserId(), $content['level']) as $refRow) {
                        // Add/"translate" more content
                        $refRow['sw']          = $SW;
-                       $refRow['points']      = TRANSLATE_COMMA($refRow['points']);
-                       $refRow['status']      = TRANSLATE_STATUS($refRow['status']);
-                       $refRow['unconfirmed'] = TRANSLATE_COMMA($refRow['unconfirmed']);
-                       $refRow['clickrate']   = TRANSLATE_COMMA($refRow['clickrate'], true, 1);
+                       $refRow['points']      = translateComma($refRow['points']);
+                       $refRow['status']      = translateUserStatus($refRow['status']);
+                       $refRow['unconfirmed'] = translateComma($refRow['unconfirmed']);
+                       $refRow['clickrate']   = translateComma($refRow['clickrate'], true, 1);
                        if (empty($refRow['nickname'])) $refRow['nickname'] = '---';
 
                        // Load row template
@@ -84,8 +84,8 @@ if (SQL_NUMROWS($result) > 0) {
                } // END - foreach
 
                // Remember the content
-               $content['counter']  = TRANSLATE_COMMA($counter);
-               $content['percents'] = TRANSLATE_COMMA($content['percents'], true, 1);
+               $content['counter']  = translateComma($counter);
+               $content['percents'] = translateComma($content['percents'], true, 1);
                $content['rows']     = $rows;
 
                // Load level template