prepared the class HTMLWrapper for usage with AJAX

This commit is contained in:
Martin Monperrus
2011-03-05 12:56:20 +01:00
parent f688e4cfa0
commit eea2522e85
+3
View File
@@ -2488,6 +2488,9 @@ class HTMLWrapper {
*/ */
function HTMLWrapper(&$content,$metatags=array()/* an array name=>value*/) { function HTMLWrapper(&$content,$metatags=array()/* an array name=>value*/) {
// when we load a page with AJAX
// the HTTP header is taken into account, not the <meta http-equiv>
header('Content-type: text/html; charset='.ENCODING);
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n"; echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'."\n";
?> ?>