]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/sponsor/settings.php
More rewrites/fixes (not all is fixed) for ext-sponsor
[mailer.git] / inc / modules / sponsor / settings.php
index 76f73ac9f62dd6caf73a33dcc19dd2bbc43a47db..636697afcf48a8e2bc92d9ebfd91702210b9efc9 100644 (file)
@@ -101,10 +101,10 @@ if (SQL_NUMROWS($result) == 1) {
 
                        if (!empty($message)) {
                                // Output message
-                               $OUT = loadTemplate('admin_settings_saved', true, $message);
+                               $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, $message);
                        } else {
                                // No message generated
-                               $OUT = loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_MESSAGE_GENERATED--}');
+                               $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, '{--SPONSOR_NO_MESSAGE_GENERATED--}');
                        }
                } else {
                        // Make yes/no selection
@@ -113,16 +113,16 @@ if (SQL_NUMROWS($result) == 1) {
                        $content['receive_warnings_' . strtolower($content['receive_warnings'])] = ' checked="checked"';
 
                        // Output formular
-                       $OUT = loadTemplate('sponsor_settings_form', true, $content);
+                       $GLOBALS['sponsor_output'] = loadTemplate('sponsor_settings_form', true, $content);
                }
        } else {
                // Locked or so?
                $STATUS = sponsorTranslateUserStatus($content['status']);
-               $OUT = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_FAILED', $STATUS));
+               $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_FAILED', $STATUS));
        }
 } else {
        // Sponsor account not found!
-       $OUT = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_404', getSession('sponsor_id')));
+       $GLOBALS['sponsor_output'] = loadTemplate('admin_settings_saved', true, getMaskedMessage('SPONSOR_ACCOUNT_404', getSession('sponsor_id')));
 }
 
 // Free memory