diff options
Diffstat (limited to 'inc/parser/lexer.php')
-rw-r--r-- | inc/parser/lexer.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/parser/lexer.php b/inc/parser/lexer.php index e7961932d..1cacaeed5 100644 --- a/inc/parser/lexer.php +++ b/inc/parser/lexer.php @@ -471,6 +471,13 @@ class Doku_Lexer { if (isset($this->_mode_handlers[$handler])) { $handler = $this->_mode_handlers[$handler]; } + // modes starting with plugin_ are all handled by the same + // handler but with an additional parameter + if(substr($handler,0,7)=='plugin_'){ + list($handler,$plugin) = split('_',$handler,2); + return $this->_parser->$handler($content, $is_match, $pos, $plugin); + } + return $this->_parser->$handler($content, $is_match, $pos); } |