]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_rallyes.php
Even more rewrites/fixes from EL branch (please report any broken part after you...
[mailer.git] / inc / modules / admin / what-list_rallyes.php
index 89ff23fd70a0c01b8c9a92d0fda8758c3f90d12e..d6bb58f5f338f1f5c1801f1ed01ebdfc63a25ba6 100644 (file)
@@ -18,6 +18,7 @@
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -101,7 +102,7 @@ if (isGetRequestParameterSet('rallye')) {
 
        // Run SQL command
        runFilterChain('run_sqls');
-} elseif (isPostRequestParameterSet('remove')) {
+} elseif (isFormSent('remove')) {
        // Delete rallyes
        if (countPostSelection() > 0) {
                // Init SQLs
@@ -127,7 +128,7 @@ if (isGetRequestParameterSet('rallye')) {
                // No rallye selected to delete!
                $message = getMessage('RALLYE_DELETE_NOTHING_SELECTED');
        }
-} elseif (isPostRequestParameterSet('change')) {
+} elseif (isFormSent('change')) {
        // Change rallye
        if (countSelection(postRequestParameter('title')) > 0) {
                // Init SQLs
@@ -176,7 +177,7 @@ LIMIT 1",
        }
 }
 
-if (isPostRequestParameterSet('edit')) {
+if (isFormSent('edit')) {
        // Check for selections
        if (countPostSelection() > 0) {
                // Make all selected and deactivated rallyes editable
@@ -229,7 +230,7 @@ LIMIT 1",
                loadTemplate('admin_edit_rallyes', false, $OUT);
        } else {
                // Nothing selected to edit
-               loadTemplate('admin_settings_saved', false, loadTemplate('admin_list_rallye_noselect', true));
+               loadTemplate('admin_settings_saved', false, getMessage('RALLYE_NO_RALLYES_SELECTED'));
        }
 } elseif ((getRequestParameter('sub') == 'users') && (getRequestParameter('rallye') > 0)) {
        // List users and their refs before start and current