Index: typo3/sysext/cms/tslib/class.tslib_pagegen.php =================================================================== --- typo3/sysext/cms/tslib/class.tslib_pagegen.php (Revision 5629) +++ typo3/sysext/cms/tslib/class.tslib_pagegen.php (Arbeitskopie) @@ -465,7 +465,31 @@ --> '; + $GLOBALS['TSFE']->content.=' + '; + // Setting charset meta tags: + $conf=$GLOBALS['TSFE']->pSetup['meta.']; + if (is_array($conf)) { + foreach($conf as $theKey=>$theValue) { + if (!strstr($theKey,'.') || !isset($conf[substr($theKey,0,-1)])) { // Only if 1) the property is set but not the value itself, 2) the value and/or any property + if (strstr($theKey,'.')) { + $theKey = substr($theKey,0,-1); + } + $val = $GLOBALS['TSFE']->cObj->stdWrap($conf[$theKey],$conf[$theKey.'.']); + $key = $theKey; + if (trim($val)) { + $a='name'; + if (strcmp($key,'refresh') || strcmp($key,'x-ua-compatible')) { + $a='http-equiv'; + } + $GLOBALS['TSFE']->content.= ' + '; + } + } + } + } + if ($GLOBALS['TSFE']->baseUrl) { $GLOBALS['TSFE']->content.=' '; @@ -671,29 +695,7 @@ $GLOBALS['TSFE']->content.=' '.htmlspecialchars($titleTagContent).''; } - $GLOBALS['TSFE']->content.=' - '; - $conf=$GLOBALS['TSFE']->pSetup['meta.']; - if (is_array($conf)) { - reset($conf); - while(list($theKey,$theValue)=each($conf)) { - if (!strstr($theKey,'.') || !isset($conf[substr($theKey,0,-1)])) { // Only if 1) the property is set but not the value itself, 2) the value and/or any property - if (strstr($theKey,'.')) { - $theKey = substr($theKey,0,-1); - } - $val = $GLOBALS['TSFE']->cObj->stdWrap($conf[$theKey],$conf[$theKey.'.']); - $key = $theKey; - if (trim($val)) { - $a='name'; - if (strtolower($key)=='refresh') {$a='http-equiv';} - $GLOBALS['TSFE']->content.= ' - '; - } - } - } - } - unset($GLOBALS['TSFE']->additionalHeaderData['JSCode']); unset($GLOBALS['TSFE']->additionalHeaderData['JSImgCode']);