]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-payout.php
Fixes for broken installation routine
[mailer.git] / inc / modules / member / what-payout.php
index 5c6e5e2c9ec04fa73a8f350ea070b36f6ba03ca6..af8b3c2a11a2e623d6826a3f017abd1bf1f3ce49 100644 (file)
@@ -45,7 +45,7 @@ if (!defined('__SECURITY')) {
        // Not logged in
        redirectToUrl('modules.php?module=index');
 } elseif ((!EXT_IS_ACTIVE('payout')) && (!IS_ADMIN())) {
-       addFatalMessage(__FILE__, __LINE__, sprintf(getMessage('EXTENSION_PROBLEM_EXT_INACTIVE'), 'payout'));
+       addFatalMessage(__FILE__, __LINE__, generateExtensionInactiveMessage('payout'));
        return;
 }
 
@@ -185,7 +185,7 @@ ORDER BY p.payout_timestamp DESC",
 
                if (convertCommaToDot($TPTS) >= $content['min_points']) {
                        // Ok, he can get be paid
-                       if ((IS_FORM_SENT()) && ($PAYOUT <= $PAY_MAX) && ($PAYOUT >= $content['min_points'])) {
+                       if ((isFormSent()) && ($PAYOUT <= $PAY_MAX) && ($PAYOUT >= $content['min_points'])) {
                                // Calculate exact value
                                // @TODO Rewrite this constant
                                define('PAYOUT_POINTS_VALUE', $PAYOUT);