Rewrote some code, added templates/functions:
[mailer.git] / inc / modules / sponsor / account.php
index 7fa142b3f1dddeb81c48d4464d22a8623cd74c3f..6a8b8efe7852b26a28c941a9bb4a3c28930b4ce3 100644 (file)
@@ -118,10 +118,10 @@ if (sqlNumRows($result) == 1) {
 
                        if (!empty($message)) {
                                // Output message
-                               $GLOBALS['sponsor_output'] = displayMessage($message, TRUE);
+                               $GLOBALS['sponsor_output'] = returnMessage($message);
                        } else {
                                // No message generated
-                               $GLOBALS['sponsor_output'] = displayMessage('{--SPONSOR_NO_MESSAGE_GENERATED--}', TRUE);
+                               $GLOBALS['sponsor_output'] = returnMessage('{--SPONSOR_NO_MESSAGE_GENERATED--}');
                        }
                } else {
                        // Output formular
@@ -129,11 +129,11 @@ if (sqlNumRows($result) == 1) {
                }
        } else {
                // Locked or so?
-               $GLOBALS['sponsor_output'] = displayMessage('{%message,SPONSOR_ACCOUNT_FAILED=' . $content['status'] . '%}', TRUE);
+               $GLOBALS['sponsor_output'] = returnMessage('{%message,SPONSOR_ACCOUNT_FAILED=' . $content['status'] . '%}');
        }
 } else {
        // Sponsor account not found
-       $GLOBALS['sponsor_output'] = displayMessage('{%message,SPONSOR_ACCOUNT_404=' . getSession('sponsor_id') . '%}', TRUE);
+       $GLOBALS['sponsor_output'] = returnMessage('{%message,SPONSOR_ACCOUNT_404=' . getSession('sponsor_id') . '%}');
 }
 
 // Free memory