summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-11-26 13:56:27 +0100
committerAndreas Gohr <andi@splitbrain.org>2005-11-26 13:56:27 +0100
commitcc2ae8020e0560794472a8f7e1526bab4c883dbd (patch)
tree10e2e9289421f43854f9e5e8b0474cdc9582cf62
parent92715eba0068ce128d245c7ed80b86773ebf2d84 (diff)
downloadrpg-cc2ae8020e0560794472a8f7e1526bab4c883dbd.tar.gz
rpg-cc2ae8020e0560794472a8f7e1526bab4c883dbd.tar.bz2
added export_xhtmlbody option #636
darcs-hash:20051126125627-7ad00-142bb2502948ce20b7ecc60941ffa3eb318478ed.gz
-rw-r--r--inc/actions.php7
1 files changed, 7 insertions, 0 deletions
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);