]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_yoomedia.php
Rewrote some code, added templates/functions:
[mailer.git] / inc / modules / admin / what-config_yoomedia.php
index 4212561278fb00aec0e18177ac619adf82a2093e..6a3dcbb07ded89248be68298182d277c360b6b32 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 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__);
 
 // Was the form submitted?
-if (isFormSent()) {
+if (isFormSent('save_config')) {
        // Test Yoo!Media config
        if (YOOMEDIA_TEST_CONFIG(postRequestArray())) {
                // Save settings
@@ -60,9 +60,7 @@ if (isFormSent()) {
        } // END - for
 
        // Set default selection
-       foreach (array('yoomedia_erotic_allowed') as $entry) {
-               $content[$entry . '_' . strtolower(getConfig($entry))] = ' selected="selected"';
-       } // END - foreach
+       $content = merge_array($content, getSelectedConfig(array('yoomedia_erotic_allowed')));
 
        // Load template
        loadTemplate('admin_config_yoomedia', FALSE, $content);