Heavy rewrite:
[mailer.git] / inc / modules / admin / what-unlock_sponsor.php
index 4571d749fd1a026754808bd44310a98badc2db42..e5588721f4513ca04bd16fc8820554f26a027546 100644 (file)
@@ -167,12 +167,12 @@ WHERE `id`='%s' LIMIT 1",
        }
 
        // Add seperator
-       OUTPUT_HTML("<br />");
+       OUTPUT_HTML('<br />');
 }
 
 // Begin listing of all pending sponsor accounts
 $result = SQL_QUERY("SELECT
-       id, gender, surname, family, email, remote_addr, sponsor_created
+       `id`, `gender`, `surname`, `family`, `email`, `remote_addr`, `sponsor_created`
 FROM
        `{!_MYSQL_PREFIX!}_sponsor_data`
 WHERE
@@ -192,19 +192,19 @@ if (SQL_NUMROWS($result) > 0) {
                        'gender'   => translateGender($content['gender']),
                        'surname' => $content['surname'],
                        'family'  => $content['family'],
-                       'email'   => "mailto:".$content['email'],
+                       'email'   => generateEmailLink($content['email'], 'sponsor_data'),
                        'remote'  => $content['remote_addr'],
                        'created' => generateDateTime($content['sponsor_created'], '2'),
                );
 
                // Load row template and switch colors
-               $OUT .= LOAD_TEMPLATE("admin_unlock_sponsor_row", true, $content);
+               $OUT .= LOAD_TEMPLATE('admin_unlock_sponsor_row', true, $content);
                $SW = 3 - $SW;
        }
        define('__SPONSOR_ROWS', $OUT);
 
        // Load template
-       LOAD_TEMPLATE("admin_unlock_sponsor");
+       LOAD_TEMPLATE('admin_unlock_sponsor');
 } else {
        // No pending accounts found
        LOAD_TEMPLATE('admin_settings_saved', false, getMessage('ADMIN_SPONSOR_NONE_PENDING'));