diff options
-rw-r--r-- | inc/actions.php | 7 |
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); |