Commit a6dd330e authored by Kasper Skårhøj's avatar Kasper Skårhøj
Browse files

* Added "config.doctype = none" support - omits any doctype in the frontend.


git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@167 709f56b5-9817-0410-a4d7-c38de5d9e867
parent e5604464
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).
......
......@@ -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
?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment