Browse Source

prepared the class HTMLWrapper for usage with AJAX

hg/35a367e65a464cf6cdf277c73f977a6828b723fe/bookmarks/master
Martin Monperrus 15 years ago
parent
commit
383cf79705
  1. 3
      bibtexbrowser.php

3
bibtexbrowser.php

@ -2488,6 +2488,9 @@ class HTMLWrapper {
*/
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";
?>

Loading…
Cancel
Save