X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-send_bonus.php;h=2f083fdf1055d1d93fa7e1b8a62092b979062aa6;hb=cc59ea1cce3e0fafc2cc6c9e36142698cf2b58ef;hp=9ef51ffb053a76038cc81852c1c8054ec548a311;hpb=d9683a7bb5014f07c0ec4f65f108335deecbeb42;p=mailer.git diff --git a/inc/modules/admin/what-send_bonus.php b/inc/modules/admin/what-send_bonus.php index 9ef51ffb05..2f083fdf10 100644 --- a/inc/modules/admin/what-send_bonus.php +++ b/inc/modules/admin/what-send_bonus.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009, 2010 by Mailer Developer Team * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -41,26 +41,23 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +addYouAreHereLink('admin', __FILE__); if (!isExtensionActive('order')) { - loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('order')); + displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=order%}'); return; } // END - if -// Set empty mode to "select" -if (!isGetRequestParameterSet('mode')) setGetRequestParameter('mode', 'select'); +// 'mode' is not set by default +if (!isGetRequestParameterSet('mode')) { + // Set empty mode to "select" + setGetRequestParameter('mode', 'select'); +} // END - if if (isFormSent()) { // Deliver bonus mail addNewBonusMail(postRequestArray(), getRequestParameter('mode')); } else { - // Get all available users - $content['all'] = getRequestParameter('mode'); - - // Prepare option lines - $content['options_lines'] = getRequestParameter('mode'); - // Store send mode $content['mode'] = getRequestParameter('mode');