From cc2ae8020e0560794472a8f7e1526bab4c883dbd Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Sat, 26 Nov 2005 13:56:27 +0100
Subject: [PATCH] added export_xhtmlbody option #636

darcs-hash:20051126125627-7ad00-142bb2502948ce20b7ecc60941ffa3eb318478ed.gz
---
 inc/actions.php | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/inc/actions.php b/inc/actions.php
index d17b975d7..315e35da8 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -124,6 +124,7 @@ function act_clean($act){
   $act = preg_replace('/[^a-z_]+/','',$act);
 
   if($act == 'export_html') $act = 'export_xhtml';
+  if($act == 'export_htmlbody') $act = 'export_xhtmlbody';
 
   if(array_search($act,array('login','logout','register','save','edit',
                              'preview','search','show','check','index','revisions',
@@ -287,6 +288,12 @@ function act_export($act){
     exit;
   }
 
+  // html body only
+  if($act == 'export_xhtmlbody'){
+    print p_wiki_xhtml($ID,$REV,false);
+    exit;
+  }
+
   // try to run renderer #FIXME use cached instructions
   $mode = substr($act,7);
   $text = p_render($mode,p_get_instructions(rawWiki($ID,$REV)),$info);
-- 
GitLab