]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-email_details.php
More rewrites, and output-mode fixed (we should documentate this)
[mailer.git] / inc / modules / admin / what-email_details.php
index dada51d2cb9a6c7df79a35286a06f64bdf213be2..1edcfd6c277d378dc67bed90361f94e43a04cfbe 100644 (file)
@@ -98,7 +98,7 @@ ORDER BY timestamp DESC";
 $result_normal = SQL_QUERY($sql, __FILE__, __LINE__);
 
 // Set offset an current page to default values
-if (!isGetRequestElementSet('page')) setRequestGetElement('page', '1');
+if (!isGetRequestElementSet('page')) setRequestGetElement('page', 1);
 
 if (!isGetRequestElementSet('offset')) {
        if (isConfigEntrySet('mails_page')) {
@@ -163,10 +163,10 @@ if (SQL_NUMROWS($result_list) > 0) {
                $content['sender_link'] = generateUserProfileLink($pool['sender']);
                $content['payment']     = getPaymentTitlePrice($pool['payment_id']);
                $content['category']    = getCategory($pool['cat_id']);
-               $content['receivers']   = str_replace(';', ", ", $pool['receivers']);
+               $content['receivers']   = convertReceivers($pool['receivers']);
                $content['type']        = translatePoolType($pool['data_type']);
                $content['frametester'] = generateFrametesterUrl($pool['url']);
-               $content['timestamp']   = generateDateTime($pool['timestamp'], '0');
+               $content['timestamp']   = generateDateTime($pool['timestamp'], 0);
 
                // Load row template
                $OUT .= loadTemplate('admin_list_emails_row', true, $content);
@@ -177,7 +177,7 @@ if (SQL_NUMROWS($result_list) > 0) {
 
        // Add navigation (with change box and colspan=3)
        $content['nav'] = '';
-       if ($PAGES > 1) $content['nav'] = addEmailNavigation($PAGES, getConfig('mails_page'), false, '3', true);
+       if ($PAGES > 1) $content['nav'] = addEmailNavigation($PAGES, getConfig('mails_page'), false, 3, true);
 
        // Prepare content
        $content['rows'] = $OUT;
@@ -215,10 +215,10 @@ if ((isExtensionActive('bonus')) && ($WHO == getMessage('_ALL'))) {
                        $content = $bonus;
                        $content['time']        = createFancyTime($content['time']);
                        $content['category']    = getCategory($content['cat_id']);
-                       $content['receivers']   = str_replace(';', ", ", $content['receivers']);
+                       $content['receivers']   = convertReceivers($content['receivers']);
                        $content['type']        = translatePoolType($content['data_type']);
                        $content['frametester'] = generateFrametesterUrl($content['url']);
-                       $content['timestamp']   = generateDateTime($content['timestamp'], '0');
+                       $content['timestamp']   = generateDateTime($content['timestamp'], 0);
 
                        // Load row template
                        $OUT .= loadTemplate('admin_list_bonus_emails_row', true, $content);
@@ -226,7 +226,7 @@ if ((isExtensionActive('bonus')) && ($WHO == getMessage('_ALL'))) {
 
                // Add navigation (without change box but with colspan=3)
                $content['nav'] = '';
-               if ($PAGES > 1) $content['nav'] = addEmailNavigation($PAGES, getConfig('mails_page'), false, '3', true);
+               if ($PAGES > 1) $content['nav'] = addEmailNavigation($PAGES, getConfig('mails_page'), false, 3, true);
 
                // Prepare content
                $content['rows'] = $OUT;