From 13ecfb181fddc89a007270d1d325db1f7e4f5fcc Mon Sep 17 00:00:00 2001 From: Chris Smith <chris.eureka@jalakai.co.uk> Date: Wed, 13 Aug 2008 14:53:34 +0200 Subject: [PATCH] Allow syntax plugin handle() function to return false to indicate do not create plugin render instruction darcs-hash:20080813125334-f07c6-dc93aefae6f027152a7bded7f0dacc814d041566.gz --- inc/parser/handler.php | 5 +++-- 1 file 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; - } } -- GitLab