}
// 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
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
// 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'] = '';
}
// 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')) {
</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>