]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-send_bonus.php
Fix for possible non-working cache update
[mailer.git] / inc / modules / admin / what-send_bonus.php
index ed6591d16c9fc5d6b12f55500c2cb2942739085f..120b6d63c37ccc93e5f08d9c4fb18fa047796018 100644 (file)
@@ -41,7 +41,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
        $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 } elseif (!EXT_IS_ACTIVE('order')) {
-       addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'order'));
+       addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveNotInstalledMessage('order'));
        return;
 }
 
@@ -51,7 +51,7 @@ 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
        addNewBonusMail(REQUEST_POST_ARRAY(), REQUEST_GET('mode'));
 } else {
@@ -62,7 +62,7 @@ if (IS_FORM_SENT()) {
        define('__OPTION_LINES', generateCategoryOptionsList(REQUEST_GET('mode')));
 
        // Store send mode
-       define('__MODE', REQUEST_GET(('mode')));
+       define('__MODE', REQUEST_GET('mode'));
 
        if (EXT_IS_ACTIVE('html_mail')) {
                // If HTML extension is active