Fix of display-bug in member's overview of points (what=points) and extra call-back...
authorRoland Häder <roland@mxchange.org>
Fri, 18 Dec 2009 20:55:04 +0000 (20:55 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 18 Dec 2009 20:55:04 +0000 (20:55 +0000)
inc/expression-functions.php
inc/filters.php
inc/modules/member/what-points.php
templates/de/html/member/member_points.tpl

index 4af9076..5e2bb0a 100644 (file)
@@ -98,9 +98,9 @@ function doExpressionUser ($data) {
        }
 
        // Do we have another function to run (e.g. translations)
-       if (!empty($extraFunction)) {
+       if (!empty($data['extra_func'])) {
                // Surround the original function call with it
-               $functionName = $extraFunction . '(' . $functionName . ')';
+               $functionName = $data['extra_func'] . '(' . $functionName . ')';
        } // END - if
 
        // Now replace the code
index 9345e50..627a400 100644 (file)
@@ -475,11 +475,12 @@ function FILTER_COMPILE_EXPRESSION_CODE ($code) {
                        if (function_exists($commandFunction)) {
                                // Prepare $matches, $key, $outputMode, etc.
                                $data = array(
-                                       'matches'  => $matches,
-                                       'key'      => $key,
-                                       'mode'     => $outputMode,
-                                       'code'     => $code,
-                                       'callback' => $callback
+                                       'matches'    => $matches,
+                                       'key'        => $key,
+                                       'mode'       => $outputMode,
+                                       'code'       => $code,
+                                       'callback'   => $callback,
+                                       'extra_func' => $extraFunction
                                );
 
                                // Call it
index 38ae759..f5bb460 100644 (file)
@@ -158,11 +158,11 @@ if ($totalLocked == '0') $totalLocked = '0.00000';
 
 // Remember several values in constants
 $content['sum']   = translateComma($totalPoints - getUserData('used_points'));
-$content['tref']  = $totalReferals;
+$content['tref']  = translateComma($totalReferals);
 $content['tlock'] = translateComma($totalLocked);
 
 // Fixes a bug when there is no bonus extension installed
-if (isExtensionInstalledAndOlder('bonus', '0.4.4')) setConfigEntry('bonus_active', "X");
+if (isExtensionInstalledAndOlder('bonus', '0.4.4')) setConfigEntry('bonus_active', 'X');
 
 // Members shall see no special rows here
 $content['special_rows'] = '';
@@ -208,9 +208,9 @@ if ((isExtensionInstalledAndNewer('bonus', '0.2.2')) && (isExtensionActive('bonu
 }
 
 // Remeber values for the final template
-$content['receive']   = $RECEIVED;
-$content['confirmed'] = $CONFIRMED;
-$content['sent']      = $SENT;
+$content['receive']   = translateComma($RECEIVED);
+$content['confirmed'] = translateComma($CONFIRMED);
+$content['sent']      = translateComma($SENT);
 
 // Load final template
 if (isExtensionActive('user')) {
index 1e501e7..5ade89c 100644 (file)
@@ -36,7 +36,7 @@
        </tr>
        <tr>
                <td class="member_data">{--UNCONFIRMED_LOCKED--}:</td>
-               <td class="member_data">{%user,ref_payout%}</td>
+               <td class="member_data">{%user,ref_payout,translateComma%}</td>
                <td class="member_data">-</td>
        </tr>
        <tr>