diff options
author | Chris Smith <chris.eureka@jalakai.co.uk> | 2008-08-13 14:53:34 +0200 |
---|---|---|
committer | Chris Smith <chris.eureka@jalakai.co.uk> | 2008-08-13 14:53:34 +0200 |
commit | 13ecfb181fddc89a007270d1d325db1f7e4f5fcc (patch) | |
tree | 05b26178c05c8e42853d5c51191b1244d3f58884 /inc/parser | |
parent | 0f3a5ebfad2c6a8fbb98062f0e0605df65dfd875 (diff) | |
download | rpg-13ecfb181fddc89a007270d1d325db1f7e4f5fcc.tar.gz rpg-13ecfb181fddc89a007270d1d325db1f7e4f5fcc.tar.bz2 |
Allow syntax plugin handle() function to return false to indicate do not create plugin render instruction
darcs-hash:20080813125334-f07c6-dc93aefae6f027152a7bded7f0dacc814d041566.gz
Diffstat (limited to 'inc/parser')
-rw-r--r-- | inc/parser/handler.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 41449d824..6b9dc9b3c 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -82,7 +82,9 @@ class Doku_Handler { if($plugin != null){ $data = $plugin->handle($match, $state, $pos, $this); } - $this->addPluginCall($pluginname,$data,$state,$pos); + if ($data !== false) { + $this->addPluginCall($pluginname,$data,$state,$pos); + } return true; } @@ -92,7 +94,6 @@ class Doku_Handler { $this->_addCall('cdata',array($match), $pos); return true; break; - } } |