Skip to content
Snippets Groups Projects
Commit cc2ae802 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

added export_xhtmlbody option #636

darcs-hash:20051126125627-7ad00-142bb2502948ce20b7ecc60941ffa3eb318478ed.gz
parent 92715eba
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment