]> git.mxchange.org Git - mailer.git/blobdiff - inc/functions.php
Yet another bunch of EL/surfbar fixes
[mailer.git] / inc / functions.php
index 1d7c71f5d230274e05c92a05351c2c551fb2fa97..7fb03af44853657e86a18351143f696e7f511a41 100644 (file)
@@ -987,6 +987,9 @@ function redirectToUrl ($URL, $allowSpider = true) {
 
        // Simple probe for bots/spiders from search engines
        if ((isSpider()) && ($allowSpider === true)) {
+               // Set HTTP-Status
+               setHttpStatus('200 OK');
+
                // Set content-type here to fix a missing array element
                setContentType('text/html');
 
@@ -3863,9 +3866,6 @@ function isSpider () {
 
 // Prepares the header for HTML output
 function loadHtmlHeader () {
-       // Enable HTML templates
-       enableTemplateHtml();
-
        // Run two filters:
        // 1.) pre_page_header (mainly loads the page_header template and includes
        //     meta description)