Next wave of lesser getMessage() usage and more EL
[mailer.git] / inc / modules / member / what-transfer.php
index 7741e57601f0314a6b024623fd655f3f5c16015c..8fbaab9869fddc4a752eba1ee0a20a9a96933f21 100644 (file)
@@ -281,16 +281,16 @@ switch ($mode) {
                switch ($mode) {
                        case 'list_in':
                                $sql = "SELECT `trans_id`, `from_userid` AS party_userid, `points`, `reason`, `time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_in` WHERE `userid`=%s ORDER BY `time_trans` DESC LIMIT {?transfer_max?}";
-                               $nothingMessage = getMessage('TRANSFER_NO_INCOMING_TRANSFERS');
-                               $content['balance'] = getMessage('TRANSFER_TOTAL_INCOMING');
-                               $content['title']   = getMessage('TRANSFER_LIST_INCOMING');
+                               $nothingMessage     = '{--TRANSFER_NO_INCOMING_TRANSFERS--}';
+                               $content['balance'] = '{--TRANSFER_TOTAL_INCOMING--}';
+                               $content['title']   = '{--TRANSFER_LIST_INCOMING--}';
                                break;
 
                        case 'list_out':
                                $sql = "SELECT `trans_id`, `to_userid` AS party_userid, `points`, `reason`, `time_trans` FROM `{?_MYSQL_PREFIX?}_user_transfers_out` WHERE `userid`=%s ORDER BY `time_trans` DESC LIMIT {?transfer_max?}";
-                               $nothingMessage = getMessage('TRANSFER_NO_OUTGOING_TRANSFERS');
-                               $content['balance'] = getMessage('TRANSFER_TOTAL_OUTGOING');
-                               $content['title']   = getMessage('TRANSFER_LIST_OUTGOING');
+                               $nothingMessage     = '{--TRANSFER_NO_OUTGOING_TRANSFERS--}';
+                               $content['balance'] = '{--TRANSFER_TOTAL_OUTGOING--}';
+                               $content['title']   = '{--TRANSFER_LIST_OUTGOING--}';
                                break;
                } // END - switch
 
@@ -429,10 +429,10 @@ KEY (`party_userid`)
                $content['total'] = translateComma($total);
 
                // Set title
-               $content['title'] = getMessage('TRANSFER_LIST_ALL');
+               $content['title'] = '{--TRANSFER_LIST_ALL--}';
 
                // Set "balance" word
-               $content['balance'] = getMessage('TRANSFER_TOTAL_BALANCE');
+               $content['balance'] = '{--TRANSFER_TOTAL_BALANCE--}';
 
                // At the end we don't need a temporary table in memory
                $result = SQL_QUERY("DROP TABLE IF EXISTS `{?_MYSQL_PREFIX?}_transfers_tmp`", __FILE__, __LINE__);
@@ -474,9 +474,6 @@ KEY (`party_userid`)
                        SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `opt_in`='%s' WHERE `userid`=%s LIMIT 1",
                                array(postRequestParameter('opt_in'), getMemberId()), __FILE__, __LINE__);
 
-                       // Rember for next switch() command
-                       getUserData('opt_in') = substr(postRequestParameter('opt_in'), 0, 1);
-
                        // "Settings saved..."
                        loadTemplate('admin_settings_saved', false, '<div class="member_done">{--SETTINGS_SAVED--}</div>');
                } // END - if
@@ -496,7 +493,7 @@ KEY (`party_userid`)
                                break;
 
                        case 'N':
-                               $content['new_link'] = getMessage('TRANSFER_PLEASE_ALLOW_OPT_IN');
+                               $content['new_link'] = '{--TRANSFER_PLEASE_ALLOW_OPT_IN--}';
                                break;
                } // END - switch