]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_register.php
Added more config wrappers
[mailer.git] / inc / modules / admin / what-config_register.php
index 12d75fc4c9b9e7a0cb917693339a0596c069d40d..eec09e7723e895ae0c34eb6c7ac6b2967ad33f91 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -44,7 +44,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 addYouAreHereLink('admin', __FILE__);
 
 // Do we want to save changes?
-if (isFormSent()) {
+if (isFormSent('save_config')) {
        // Begin counting
        $count = 0;
 
@@ -63,7 +63,7 @@ if (isFormSent()) {
 } // END - if
 
 // List all register values
-$result = SQL_QUERY("SELECT `id`,`field_name`,`field_required` FROM `{?_MYSQL_PREFIX?}_must_register` ORDER BY `id` ASC", __FILE__, __LINE__);
+$result = SQL_QUERY("SELECT `id`, `field_name`, `field_required` FROM `{?_MYSQL_PREFIX?}_must_register` ORDER BY `id` ASC", __FILE__, __LINE__);
 $OUT = '';
 while ($content = SQL_FETCHARRAY($result)) {
        // Get language string
@@ -73,14 +73,14 @@ while ($content = SQL_FETCHARRAY($result)) {
        $content['selection'] = addSelectionBox('yn', $content['field_required'], 'sel[' . $content['id'] . ']');
 
        // @TODO Move this HTML code into a template
-       $OUT .= loadTemplate('admin_config_register_row', true, $content);
+       $OUT .= loadTemplate('admin_config_register_row', TRUE, $content);
 } // END - while
 
 // Free memory
 SQL_FREERESULT($result);
 
 // Load template
-loadTemplate('admin_config_register', false, $OUT);
+loadTemplate('admin_config_register', FALSE, $OUT);
 
 // [EOF]
 ?>