]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_yoomedia.php
if is NULL the webmaster's email address will be used instead, made ext-coupon worki...
[mailer.git] / inc / modules / admin / what-config_yoomedia.php
index e0de49ae6c54037a08a81b28ff93369ae5c43ca8..4212561278fb00aec0e18177ac619adf82a2093e 100644 (file)
@@ -8,7 +8,7 @@
  * -------------------------------------------------------------------- *
  * Short description : Setup default statistics mode                    *
  * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Standart Modus der Statistiken einstellen        *
+ * Kurzbeschreibung  : Standard Modus der Statistiken einstellen        *
  * -------------------------------------------------------------------- *
  * $Revision::                                                        $ *
  * $Date::                                                            $ *
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
- * For more information visit: http://www.mxchange.org                  *
+ * 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 *
  * it under the terms of the GNU General Public License as published by *
@@ -43,11 +43,6 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
-if (!isExtensionActive('yoomedia')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('yoomedia'));
-       return;
-} // END - if
-
 // Was the form submitted?
 if (isFormSent()) {
        // Test Yoo!Media config
@@ -56,11 +51,11 @@ if (isFormSent()) {
                adminSaveSettingsFromPostData();
        } else {
                // Config not saved
-               loadTemplate('admin_settings_saved', false, '{--ADMIN_CONFIG_YOOMEDIA_TEST_FAILED--}');
+               displayMessage('{--ADMIN_CONFIG_YOOMEDIA_TEST_FAILED--}');
        }
 } else {
        // Erotic selection
-       for ($idx = '0'; $idx <= 2; $idx++) {
+       for ($idx = 0; $idx <= 2; $idx++) {
                $content['yoomedia_erotic_allowed_' . $idx] = '';
        } // END - for
 
@@ -70,7 +65,7 @@ if (isFormSent()) {
        } // END - foreach
 
        // Load template
-       loadTemplate('admin_config_yoomedia', false, $content);
+       loadTemplate('admin_config_yoomedia', FALSE, $content);
 }
 
 // [EOF]