]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_yoomedia.php
mailer project continued:
[mailer.git] / inc / modules / admin / what-config_yoomedia.php
index 6c8b86b52ad71172db02039ac1efd8c1ba5acdd2..26717ff11516a894bcca569d88fad24dbeda3c54 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 *
@@ -41,12 +41,7 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 } // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
-
-if (!isExtensionActive('yoomedia')) {
-       loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('yoomedia'));
-       return;
-} // END - if
+addYouAreHereLink('admin', __FILE__);
 
 // Was the form submitted?
 if (isFormSent()) {
@@ -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