]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/wernis_functions.php
Extension ext-surfbar continued, fixes:
[mailer.git] / inc / libs / wernis_functions.php
index 46c12509670ca8bca834c46afd089c256f5ede2b..fb8c57c709f56e9ef5491d9d2257b67b430a1cce 100644 (file)
@@ -53,7 +53,7 @@ function GET_WERNIS_ERROR_MESSAGE () {
                return $GLOBALS['wernis_data']['message'];
        } elseif (isset($GLOBALS['wernis_data']['status'])) {
                // Fall-back to status
-               return getMaskedMessage('WERNIS_ERROR_STATUS', $GLOBALS['wernis_data']['status']);
+               return '{%message,WERNIS_ERROR_STATUS=' . $GLOBALS['wernis_data']['status'] . '%}';
        } else {
                // Something bad happend
                return '{--WERNIS_UNKNOWN_ERROR--}';
@@ -115,7 +115,7 @@ function WERNIS_SEND_REQUEST ($scriptName, $requestData =  array()) {
                // Something bad happend... :(
                return array(
                        'status'  => 'request_error',
-                       'message' => getMaskedMessage('WERNIS_API_REQUEST_ERROR', $response[0])
+                       'message' => '{%message,WERNIS_API_REQUEST_ERROR=' . $response[0] . '%}'
                );
        } // END - if
 
@@ -193,7 +193,7 @@ function WERNIS_SEND_REQUEST ($scriptName, $requestData =  array()) {
                                logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unknown error %s from WDS66 API received.", $data[1]));
                                $return = array(
                                        'status'  => 'request_failed',
-                                       'message' => getMaskedMessage('WERNIS_API_REQUEST_FAILED', $data[1])
+                                       'message' => '{%message,WERNIS_API_REQUEST_FAILED=' . $data[1] . '%}'
                                );
                                break;
                }
@@ -222,7 +222,7 @@ function WERNIS_TEST_API () {
                // All fine!
                $result = true;
        } else {
-               // Status failture text
+               // Status failure text
                WERNIS_STATUS_MESSAGE($return['message'], $return['status']);
        }
 
@@ -266,7 +266,7 @@ function WERNIS_EXECUTE_WITHDRAW ($wdsId, $userMd5, $amount) {
                // Log the transfer
                WERNIS_LOG_TRANSFER($wdsId, $amount, 'IN');
        } else {
-               // Status failture text
+               // Status failure text
                WERNIS_STATUS_MESSAGE($return['message'], $return['status']);
 
                // Log the transfer
@@ -303,7 +303,7 @@ function WERNIS_EXECUTE_PAYOUT ($wdsId, $amount) {
                // Log the transfer
                WERNIS_LOG_TRANSFER($wdsId, $amount, 'OUT');
        } else {
-               // Status failture text
+               // Status failure text
                WERNIS_STATUS_MESSAGE($return['message'], $return['status']);
 
                // Log the transfer
@@ -317,7 +317,7 @@ function WERNIS_EXECUTE_PAYOUT ($wdsId, $amount) {
 // Translate the status IN/OUT
 function translateWernisTransferStatus ($status) {
        // Default status
-       $return = getMaskedMessage('WERNIS_STATUS_UNKNWOWN', $status);
+       $return = '{%message,WERNIS_STATUS_UNKNWOWN=' . $status . '%}';
 
        // Which status?
        switch ($status) {
@@ -400,9 +400,9 @@ function WERNIS_ADD_WITHDRAW_FEE ($points) {
        return $points;
 }
 
-// ---------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
 //                             Wrapper functions
-// ---------------------------------------------------------------------------
+//-----------------------------------------------------------------------------
 
 // Wrapper function for 'wernis_refid'
 function getWernisRefid () {