summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnika Henke <a.c.henke@arcor.de>2006-03-04 21:47:48 +0100
committerAnika Henke <a.c.henke@arcor.de>2006-03-04 21:47:48 +0100
commit85f8705cf54290c91c7420a7530c8e0f9dc3fa22 (patch)
tree8e17e4f58b734fbedf7957a0c14ecb207aef61b0
parentff2f7f219f012a8a8b1ef042b1ca2cb479f632d5 (diff)
downloadrpg-85f8705cf54290c91c7420a7530c8e0f9dc3fa22.tar.gz
rpg-85f8705cf54290c91c7420a7530c8e0f9dc3fa22.tar.bz2
added missing doctype and title for export_html
darcs-hash:20060304204748-d5083-c03783b7c736f039058ccd7150417c17fbe3265f.gz
-rw-r--r--inc/actions.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/inc/actions.php b/inc/actions.php
index 3004c04fb..eaf0c268e 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -277,9 +277,16 @@ function act_export($act){
// html export #FIXME what about the template's style?
if($act == 'export_xhtml'){
+ global $conf;
+ global $lang;
header('Content-Type: text/html; charset=utf-8');
- ptln('<html>');
+ ptln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"');
+ ptln(' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
+ ptln('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="'.$conf['lang'].'"');
+ ptln(' lang="'.$conf['lang'].'" dir="'.$lang['direction'].'">');
ptln('<head>');
+ ptln(' <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />');
+ ptln(' <title>'.$ID.'</title>');
tpl_metaheaders();
ptln('</head>');
ptln('<body>');