Entire rewrite of mail part in app! Not kidding here...
[mailer.git] / inc / modules / admin / what-email_details.php
index 14eccfe180c1e2dfa76424df254144b61936348f..7e58510f76c1bf8cdd285758f2edcaa4476e048d 100644 (file)
@@ -53,9 +53,10 @@ ADD_DESCR("admin", basename(__FILE__));
 // Normal mails ordered by your members
 //              0     1       2       3       4           5          6          7       8        9          10
 $SQL = "SELECT id, sender, subject, text, receivers, payment_id, data_type, timestamp, url, target_send, cat_id
- FROM "._MYSQL_PREFIX."_pool
- WHERE data_type IN('ADMIN', 'TEMP', 'NEW', 'ACTIVE')
- ORDER BY timestamp DESC";
+FROM "._MYSQL_PREFIX."_pool
+WHERE data_type IN('ADMIN','TEMP','NEW','ACTIVE')
+ORDER BY timestamp DESC";
+
 $WHO = _ALL;
 $SQL2 = "";
 
@@ -150,7 +151,7 @@ if (SQL_NUMROWS($result_list) > 0) {
                $content['payment']     = GET_PAYMENT($pool['payment_id']);
                $content['category']    = GET_CATEGORY($pool['cat_id']);
                $content['receivers']   = str_replace(";", ", ", $pool['receivers']);
-               $content['type']        = GET_POOL_TYPE($pool['data_type']);
+               $content['type']        = TRANSLATE_POOL_TYPE($pool['data_type']);
                $content['frametester'] = FRAMETESTER($pool['url']);
                $content['timestamp']   = MAKE_DATETIME($pool['timestamp'], "0");
 
@@ -202,7 +203,7 @@ if ((EXT_IS_ACTIVE("bonus")) && ($WHO == _ALL)) {
                        $content['time']        = CREATE_FANCY_TIME($content['time']);
                        $content['category']    = GET_CATEGORY($content['cat_id']);
                        $content['receivers']   = str_replace(";", ", ", $content['receivers']);
-                       $content['type']        = GET_POOL_TYPE($content['data_type']);
+                       $content['type']        = TRANSLATE_POOL_TYPE($content['data_type']);
                        $content['frametester'] = FRAMETESTER($content['url']);
                        $content['timestamp']   = MAKE_DATETIME($content['timestamp'], "0");