]> git.mxchange.org Git - mailer.git/blobdiff - sponsor_ref.php
Fixes and cleanups
[mailer.git] / sponsor_ref.php
index d6cbd1f0de10c076b9a16990154897b71790d003..4d7d467beb1cde20e1aeef441554943193e7b040 100644 (file)
@@ -6,9 +6,9 @@
  * -------------------------------------------------------------------- *
  * File              : sponsor_ref.php                                  *
  * -------------------------------------------------------------------- *
- * Short description : Redirection for the referal link                 *
+ * Short description : Redirection for the referral link                *
  * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Weiterleitungsscript fuer die Referal-Links      *
+ * Kurzbeschreibung  : Weiterleitungsscript fuer die Referral-Links     *
  * -------------------------------------------------------------------- *
  * $Revision::                                                        $ *
  * $Date::                                                            $ *
@@ -17,7 +17,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software. You can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -52,10 +52,10 @@ setContentType('text/html');
 // Base URL for redirection
 $url = 'modules.php?module=index';
 
-// Do we have a referal id?
-if (isValidUserId($GLOBALS['refid'])) {
+// Do we have a referral id?
+if (isReferralIdValid()) {
        // We have an refid here. So we simply add it
-       $url .= '&what=sponsor_reg&refid=' . $GLOBALS['refid'];
+       $url .= '&what=sponsor_reg&refid=' . determineReferralId();
 } // END - if
 
 // Load the URL