]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/wernis_functions.php
Inconsistency between echo and print() fixed to OUTPUT_HTML() (not all)
[mailer.git] / inc / libs / wernis_functions.php
index 9aec9da8e97b6a7e599d3a65c5d68a4fb3a8d3b3..a7ff74f1dedc4e5abd04a42ccd44811fa390ce47 100644 (file)
@@ -43,9 +43,9 @@ if (!defined('__SECURITY')) {
 }
 
 // Sets a status message and code
-function WERNIS_STATUS_MESSAGE ($msg, $status) {
-       $GLOBALS['wernis_data']['message'] = $msg;
-       $GLOBALS['wernis_data']['status'] = $status;
+function WERNIS_STATUS_MESSAGE ($message, $status) {
+       $GLOBALS['wernis_data']['message'] = $message;
+       $GLOBALS['wernis_data']['status']  = $status;
 }
 
 // Get the status message
@@ -339,7 +339,7 @@ function WERNIS_LOG_TRANSFER ($wdsId, $amount, $type = 'FAILED', $message = '',
 // Take fees and factor
 function WERNIS_TAKE_FEE ($points, $mode) {
        // Payout or withdraw are allowed modes!
-       //* DEBUG: */ echo "mode={$mode},points={$points}<br />\n";
+       //* DEBUG: */ OUTPUT_HTML("mode={$mode},points={$points}<br />");
        if (!in_array($mode, array('payout', 'withdraw'))) {
                // Log error and abort
                DEBUG_LOG(__FUNCTION__, __LINE__, "uid={getUserId()},mode={$mode},points={$points}");
@@ -365,7 +365,7 @@ function WERNIS_TAKE_FEE ($points, $mode) {
        }
 
        // Return value
-       //* DEBUG: */ echo "mode={$mode},points={$points}<br />\n";
+       //* DEBUG: */ OUTPUT_HTML("mode={$mode},points={$points}<br />");
        return $points;
 }
 
@@ -389,7 +389,7 @@ function WERNIS_ADD_FEES_TO_ARRAY (&$array) {
        // Is the array an array? ;-)
        if (!is_array($array)) {
                // Log error and return
-               DEBUG_LOG(__FUNCTION__, __LINE__, ' Type '.gettype($array).'!=array.');
+               DEBUG_LOG(__FUNCTION__, __LINE__, 'Type ' . gettype($array) . ' != array.');
                return;
        } // END - if