From 31c0895a7b91fad19cbf15cc5bff90d63ce704ef Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 31 Oct 2019 15:32:51 +0100 Subject: [PATCH 1/2] make addCall accessible again. fixes #2887 It also reintroduces _addCall() as a deprecated alias. --- inc/parser/handler.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 19c2aafe8..9fb71b4cd 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -44,11 +44,17 @@ class Doku_Handler { * @param mixed $args arguments for this call * @param int $pos byte position in the original source file */ - protected function addCall($handler, $args, $pos) { + public function addCall($handler, $args, $pos) { $call = array($handler,$args, $pos); $this->callWriter->writeCall($call); } + /** @deprecated 2019-10-31 use addCall() instead */ + public function _addCall($handler, $args, $pos) { + dbg_deprecated('addCall'); + $this->addCall($handler, $args, $pos); + } + /** * Similar to addCall, but adds a plugin call * From 767b83f91fd5f634b526962058e996d6eeba726c Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 31 Oct 2019 15:35:12 +0100 Subject: [PATCH 2/2] make addPluginCall accessible again Some plugins are using this method. --- inc/parser/handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/parser/handler.php b/inc/parser/handler.php index 9fb71b4cd..e5f7c4ed5 100644 --- a/inc/parser/handler.php +++ b/inc/parser/handler.php @@ -64,7 +64,7 @@ class Doku_Handler { * @param int $pos byte position in the original source file * @param string $match matched syntax */ - protected function addPluginCall($plugin, $args, $state, $pos, $match) { + public function addPluginCall($plugin, $args, $state, $pos, $match) { $call = array('plugin',array($plugin, $args, $state, $match), $pos); $this->callWriter->writeCall($call); }