]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_primera.php
Some functions renamed:
[mailer.git] / inc / modules / admin / what-config_primera.php
index fff48f3ac43282b1102b5f31b620849c70635797..9518d07a31b5602ec19960cceec05df4f6972676 100644 (file)
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -48,10 +48,10 @@ if (isFormSent()) {
        mergeConfig(postRequestArray());
 
        // Is the password set?
-       if (isPostRequestParameterSet('password')) {
+       if (isPostRequestElementSet('password')) {
                // Then hash and remove it
-               setPostRequestParameter('primera_api_md5', md5(postRequestParameter('password')));
-               unsetPostRequestParameter('password');
+               setPostRequestElement('primera_api_md5', md5(postRequestElement('password')));
+               unsetPostRequestElement('password');
        } // END - if
 
        // Let's test the API first (hold your horses here, cowboy! Thank you. :) )
@@ -60,7 +60,7 @@ if (isFormSent()) {
                adminSaveSettingsFromPostData();
        } else {
                // Failed to test the API!
-               loadTemplate('admin_settings_saved', false, GET_PRIMERA_ERROR_MESSAGE());
+               displayMessage(GET_PRIMERA_ERROR_MESSAGE());
        }
 }  else {
        // Load template