Next wave of lesser getMessage() usage and more EL
[mailer.git] / inc / libs / refback_functions.php
index dcd553bf1724a546d801a1ae7ec7dfc672f689ec..2b69d37af3d4bec6530287f83e3e2e7ec0d4b46e 100644 (file)
@@ -355,20 +355,20 @@ function getArrayFromUserRefbackData ($id) {
 function updateMemberRefbackPercents ($id, $percents) {
        //* DEBUG: */ print("----------------------- <font color=\"#00aa00\">".__FUNCTION__." - ENTRY</font> ------------------------<ul><li>\n");
        // Default status is failed
-       $status['message'] = getMessage('MEMBER_REFBACK_ERROR_GENERAL');
+       $status['message'] = '{--MEMBER_REFBACK_ERROR_GENERAL--}';
 
        // Do some sanity-checks
        if (!isMember()) {
                // No member!
-               $status['message'] = getMessage('MEMBER_REFBACK_ERROR_NO_MEMBER');
+               $status['message'] = '{--MEMBER_REFBACK_ERROR_NO_MEMBER--}';
                return $status;
        } elseif (''.$id.'' != ''.($id + 0).'') {
                // No number!
-               $status['message'] = getMessage('MEMBER_REFBACK_ERROR_INVALID_ID_NUMBER');
+               $status['message'] = '{--MEMBER_REFBACK_ERROR_INVALID_ID_NUMBER--}';
                return $status;
        } elseif (($percents < 0) || ($percents > 100)) {
                // Percentage is not valid!
-               $status['message'] = getMessage('MEMBER_REFBACK_ERROR_INVALID_PERCENTAGE');
+               $status['message'] = '{--MEMBER_REFBACK_ERROR_INVALID_PERCENTAGE--}';
                return $status;
        }
 
@@ -378,7 +378,7 @@ function updateMemberRefbackPercents ($id, $percents) {
        // Is this valid?
        if (count($dummy) == 0) {
                // id does not belong to user!
-               $status['message'] = getMessage('MEMBER_REFBACK_ERROR_ID_MISMATCH');
+               $status['message'] = '{--MEMBER_REFBACK_ERROR_ID_MISMATCH--}';
                return $status;
        } // END - if
 
@@ -392,7 +392,7 @@ function updateMemberRefbackPercents ($id, $percents) {
        // Entry updated?
        if (SQL_AFFECTEDROWS() < 1) {
                // Entry not updated!
-               $status['message'] = getMessage('MEMBER_REFBACK_ERROR_NOT_UPDATED');
+               $status['message'] = '{--MEMBER_REFBACK_ERROR_NOT_UPDATED--}';
                return $status;
        } // END - if