]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/primera_functions.php
Call-back function names shortened, __FUNCTION__ used:
[mailer.git] / inc / libs / primera_functions.php
index baf88c8796b5bf106a82eef3da02119d7e957a9e..9653804725c7f3974fe841c996fb734a50fad79d 100644 (file)
@@ -258,7 +258,7 @@ function executePrimeraWithdraw ($primusNick, $userMd5, $amount) {
        $api = new PrimeraApi($primusNick, $userMd5);
 
        // Prepare purpose
-       eval('$purpose = "' . preCompileCode(getMaskedMessage('PRIMERA_API_PURPOSE_WITHDRAW', getSession('sponsorid'))) . '";');
+       eval('$purpose = "' . doFinalCompilation(getMaskedMessage('PRIMERA_API_PURPOSE_WITHDRAW', getSession('sponsorid')), true) . '";');
 
        // Pay the Primera
        return $api->payPrimera($primusNick, $amount, $purpose);
@@ -270,7 +270,7 @@ function executePrimeraPayout ($primusNick, $userMd5, $amount) {
        $api = new PrimeraApi(getConfig('primera_api_name'), getConfig('primera_api_md5'));
 
        // Prepare purpose
-       eval('$purpose = "' . preCompileCode(getMaskedMessage('PRIMERA_API_PURPOSE_PAYOUT', getMemberId())) . '";');
+       eval('$purpose = "' . doFinalCompilation(getMaskedMessage('PRIMERA_API_PURPOSE_PAYOUT', getMemberId()), true) . '";');
 
        // Pay the Primera
        return $api->payPrimera($primusNick, $amount, $purpose);