]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_sponsor_pay.php
Used EL code {%template,LoadTemplate=foo%} instead of loadTemplate('foo', TRUE);
[mailer.git] / inc / modules / admin / what-list_sponsor_pay.php
index 16276c4da5a8079dd09fb0d0ac748dabff40ecf5..cd3178fc98e9b37ce98017e289d343ac8906afab 100644 (file)
@@ -95,7 +95,7 @@ LIMIT 1",
                // Remove entries here...
                foreach (postRequestElement('id') as $id => $sel) {
                        // Remove entry
-                       SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes` WHERE `id`=%s LIMIT 1",
+                       SQL_QUERY_ESC('DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_sponsor_paytypes` WHERE `id`=%s LIMIT 1',
                                array(bigintval($id)), __FILE__, __LINE__);
                }
 
@@ -172,7 +172,7 @@ if (isFormSent('add')) {
        }
 } else {
        // Load all payment types
-       $result = SQL_QUERY("SELECT
+       $result = SQL_QUERY('SELECT
        `id`,
        `pay_name`,
        `pay_rate`,
@@ -181,7 +181,7 @@ if (isFormSent('add')) {
 FROM
        `{?_MYSQL_PREFIX?}_sponsor_paytypes`
 ORDER BY
-       `pay_name` ASC",
+       `pay_name` ASC',
                __FILE__, __LINE__);
 
        // Are there some payment types setup?
@@ -205,9 +205,6 @@ ORDER BY
        // Free memory
        SQL_FREERESULT($result);
 
-       // Add new payment types here
-       $content['add_out'] = loadTemplate('admin_add_sponsor_paytype', TRUE);
-
        // Load final template
        loadTemplate('admin_sponsor_paytypes', FALSE, $content);
 }