summaryrefslogtreecommitdiff
path: root/inc/parser/handler.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser/handler.php')
-rw-r--r--inc/parser/handler.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php
index 72f6de490..2de8df7cb 100644
--- a/inc/parser/handler.php
+++ b/inc/parser/handler.php
@@ -29,8 +29,8 @@ class Doku_Handler {
$this->CallWriter->writeCall($call);
}
- function addPluginCall($plugin, $args, $state, $pos) {
- $call = array('plugin',array($plugin, $args, $state), $pos);
+ function addPluginCall($plugin, $args, $state, $pos, $match) {
+ $call = array('plugin',array($plugin, $args, $state, $match), $pos);
$this->CallWriter->writeCall($call);
}
@@ -80,11 +80,10 @@ class Doku_Handler {
$data = array($match);
$plugin =& plugin_load('syntax',$pluginname);
if($plugin != null){
- $plugin->setMatch($match);
$data = $plugin->handle($match, $state, $pos, $this);
}
if ($data !== false) {
- $this->addPluginCall($pluginname,$data,$state,$pos);
+ $this->addPluginCall($pluginname,$data,$state,$pos,$match);
}
return true;
}