]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-send_bonus.php
Fix for fatal error and naming convention applied
[mailer.git] / inc / modules / admin / what-send_bonus.php
index 45a8659627a1f621a7c9d2b4c43fdfc84d7cb0d4..0e5d9f95f36ccb6021b8f09a9d41a37bc6ca57f0 100644 (file)
@@ -51,15 +51,15 @@ ADD_DESCR('admin', __FILE__);
 // Set empty mode to "select"
 if (!REQUEST_ISSET_GET('mode')) REQUEST_SET_GET('mode', "select");
 
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
        // Deliver bonus mail
-       ADD_NEW_BONUS_MAIL(REQUEST_POST_ARRAY(), REQUEST_GET('mode'));
+       addNewBonusMail(REQUEST_POST_ARRAY(), REQUEST_GET('mode'));
 } else {
        // Get all available users
-       define('__ALL_VALUE', TRANSLATE_COMMA(GET_TOTAL_RECEIVERS(REQUEST_GET('mode'))));
+       define('__ALL_VALUE', translateComma(getTotalReceivers(REQUEST_GET('mode'))));
 
        // Prepare option lines
-       define('__OPTION_LINES', ADD_CATEGORY_OPTIONS(REQUEST_GET('mode')));
+       define('__OPTION_LINES', generateCategoryOptionsList(REQUEST_GET('mode')));
 
        // Store send mode
        define('__MODE', REQUEST_GET(('mode')));