diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-12-03 20:01:38 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-12-03 20:01:38 +0100 |
commit | 2d5ccb39b065724c19bf34e24edfe52ebce90e74 (patch) | |
tree | dbd18b2694c1566baa69f633d23b6e7885239136 /inc/actions.php | |
parent | f8cc712e2ad522d0bd56b9ba3983cd42abf664ad (diff) | |
download | rpg-2d5ccb39b065724c19bf34e24edfe52ebce90e74.tar.gz rpg-2d5ccb39b065724c19bf34e24edfe52ebce90e74.tar.bz2 |
pluggable renderers
Plugins can now provide their own renderer in lib/plugins/<name>/renderer.php
The class inside this file needs to inherit from Doku_Renderer and has to be
called Doku_Renderer_<name>
To access the renderer the export action can be used eg: ?do
darcs-hash:20061203190138-7ad00-f56b470b5dd043e1168ff2101c677eb8a9851627.gz
Diffstat (limited to 'inc/actions.php')
-rw-r--r-- | inc/actions.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/inc/actions.php b/inc/actions.php index b37106ec5..4143416bb 100644 --- a/inc/actions.php +++ b/inc/actions.php @@ -150,7 +150,7 @@ function act_clean($act){ //remove all bad chars $act = strtolower($act); - $act = preg_replace('/[^a-z_]+/','',$act); + $act = preg_replace('/[^1-9a-z_]+/','',$act); if($act == 'export_html') $act = 'export_xhtml'; if($act == 'export_htmlbody') $act = 'export_xhtmlbody'; @@ -393,14 +393,12 @@ function act_export($act){ // try to run renderer #FIXME use cached instructions $mode = substr($act,7); - $text = p_render($mode,p_get_instructions(rawWiki($ID,$REV)),$info); + $text = p_cached_output(wikiFN($ID,$REV), $mode); if(!is_null($text)){ print $text; exit; } - - return 'show'; } |