]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_yoomedia.php
Theoretical working merge of mailid.php and mailid_top.php into mailid.php + a couple...
[mailer.git] / inc / modules / admin / what-config_yoomedia.php
index 4212561278fb00aec0e18177ac619adf82a2093e..f377cd88996a56a7db5db274c78b0ae641232d14 100644 (file)
@@ -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);