summaryrefslogtreecommitdiff
path: root/inc/parserutils.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-03-03 22:41:02 +0100
committerAndreas Gohr <andi@splitbrain.org>2007-03-03 22:41:02 +0100
commit5f70445d51e06ae1a3d1bf820f97238942985fde (patch)
treeec4f24b5a0447e6c855a059c247cd32d43e8a4db /inc/parserutils.php
parent47b2d319dce63bf054ff2428b9efedccc6b695f7 (diff)
downloadrpg-5f70445d51e06ae1a3d1bf820f97238942985fde.tar.gz
rpg-5f70445d51e06ae1a3d1bf820f97238942985fde.tar.bz2
added getFormat() function to renderer
Each renderer has to supply a getFormat() function returning the format it produces. Usually this is the same as the classname of the renderer (or Plugin) says but it does not need to be necessarily. Fixes a problem with the wrong format being reported to plugins when a render plugin was used. darcs-hash:20070303214102-7ad00-3f87d8a10e94f4c6c30bacc8f43486b94ecdb146.gz
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r--inc/parserutils.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php
index 1caad257e..20971ac03 100644
--- a/inc/parserutils.php
+++ b/inc/parserutils.php
@@ -516,7 +516,6 @@ function p_sort_modes($a, $b){
function p_render($mode,$instructions,& $info){
if(is_null($instructions)) return '';
-
// try default renderer first:
$file = DOKU_INC."inc/parser/$mode.php";
if(@file_exists($file)){