Naming-inconsistency fixed #2
[mailer.git] / sponsor_ref.php
index 2b6cad86e136238951a23b04bb1cceca0601c41b..6fccdfda7070c656e07f6df7f694a3da5fd0448a 100644 (file)
@@ -47,6 +47,9 @@ $GLOBALS['output_mode'] = -2;
 // Load the required file(s)
 require('inc/config-global.php');
 
+// Set content type for e.g. search engines
+if (isSpider()) setContentType('text/html');
+
 // Base URL for redirection
 $URL = 'modules.php?module=index&what=sponsor_reg&refid=';
 
@@ -56,7 +59,7 @@ if (!empty($GLOBALS['refid'])) {
        $URL .= $GLOBALS['refid'];
 } else {
        // No refid so we redirect to the index page
-       $URL = 'index.php';
+       $URL = 'modules.php?module=index';
 }
 
 // Load the URL