summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2008-05-04 11:24:10 +0200
committerAndreas Gohr <andi@splitbrain.org>2008-05-04 11:24:10 +0200
commit3c86d7c93eae19fe1921ee3da001a182f895dfa2 (patch)
tree265da560112d422b61121e58ecdde8337985bbaf /inc/actions.php
parent9291cf33edfd5af1f7c1439526d15c95467956ce (diff)
downloadrpg-3c86d7c93eae19fe1921ee3da001a182f895dfa2.tar.gz
rpg-3c86d7c93eae19fe1921ee3da001a182f895dfa2.tar.bz2
Fixed TOC for HTML export modes FS#1384
darcs-hash:20080504092410-7ad00-ec386b1e897c1afbf3fd9e9a68867c4284225f72.gz
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/inc/actions.php b/inc/actions.php
index c0f85c97a..24516e5d5 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -392,7 +392,9 @@ function act_export($act){
ptln('</head>');
ptln('<body>');
ptln('<div class="dokuwiki export">');
- print p_wiki_xhtml($ID,$REV,false);
+ $html = p_wiki_xhtml($ID,$REV,false);
+ tpl_toc();
+ echo $html;
ptln('</div>');
ptln('</body>');
ptln('</html>');
@@ -401,7 +403,9 @@ function act_export($act){
// html body only
if($act == 'export_xhtmlbody'){
- print p_wiki_xhtml($ID,$REV,false);
+ $html = p_wiki_xhtml($ID,$REV,false);
+ tpl_toc();
+ echo $html;
exit;
}