* Added "config.doctype = none" support - omits any doctype in the frontend.
authorKasper Skårhøj <kasper@typo3.org>
Wed, 31 Mar 2004 13:26:22 +0000 (13:26 +0000)
committerKasper Skårhøj <kasper@typo3.org>
Wed, 31 Mar 2004 13:26:22 +0000 (13:26 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@167 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_pagegen.php

index c659772..4951c65 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-03-31  Kasper Skårhøj,,,  <kasper@typo3.com>
+
+       * Added "config.doctype = none" support - omits any doctype in the frontend.
+
 2004-03-31  Kasper Skårhøj,,,  <kasper@typo3.com>
 
        * Fixed an error for form wizard (and others...) where the return URL would be wrong if the wizard was activated right after having saved a new record (would like back to a new record again). 
index bc96540..6e04600 100755 (executable)
@@ -340,6 +340,8 @@ function linkTo_UnCryptMailto(s)    {       //
                                        $docTypeParts[]='<!DOCTYPE html 
      PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">';
+                               break;
+                               case 'none':
                                break;
                                default:
                        $docTypeParts[]=$GLOBALS['TSFE']->config['config']['doctype'];
@@ -356,10 +358,9 @@ function linkTo_UnCryptMailto(s)   {       //
                }
                
                        // Adding doctype parts:
-               $GLOBALS['TSFE']->content.=implode(chr(10),$docTypeParts).chr(10);
-               
-               $GLOBALS['TSFE']->content.='
-<html>
+               $GLOBALS['TSFE']->content.= count($docTypeParts) ? implode(chr(10),$docTypeParts).chr(10) : '';
+
+               $GLOBALS['TSFE']->content.='<html>
 <head>
 <!-- '.($customContent?$customContent.chr(10):'').'
        This website is brought to you by TYPO3 - get.content.right
@@ -689,4 +690,4 @@ require_once(PATH_tslib.'class.tslib_menu.php');
 // *************************
 require_once(PATH_tslib.'class.tslib_content.php');
 
-?>
\ No newline at end of file
+?>