From 9d38872372cfa2e0a19609265977ce46ce2dd472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerry=20Wei=C3=9Fbach?= Date: Wed, 21 Jan 2026 13:24:20 +0100 Subject: [PATCH] Fix deprecated _addCall() method - use addCall() instead --- syntax/autotoc.php | 2 +- syntax/metatoc.php | 2 +- syntax/sidetoc.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/syntax/autotoc.php b/syntax/autotoc.php index b00a7f8..c2f4a8d 100644 --- a/syntax/autotoc.php +++ b/syntax/autotoc.php @@ -52,7 +52,7 @@ function handle($match, $state, $pos, Doku_Handler $handler) { switch ($m[1]) { case 'NOTOC': - // $handler->_addCall('notoc', array(), $pos); + $handler->addCall('notoc', array(), $pos); $tocPosition = 9; break; case 'CLOSETOC': diff --git a/syntax/metatoc.php b/syntax/metatoc.php index 561c1c2..82c82a4 100644 --- a/syntax/metatoc.php +++ b/syntax/metatoc.php @@ -56,7 +56,7 @@ function handle($match, $state, $pos, Doku_Handler $handler) { // should disable built-in TOC here? if ($m[1] == 'TOC') { - $handler->_addCall('notoc', array(), $pos); + $handler->addCall('notoc', array(), $pos); } // check basic tocStyle diff --git a/syntax/sidetoc.php b/syntax/sidetoc.php index fedb0a9..4e3d342 100644 --- a/syntax/sidetoc.php +++ b/syntax/sidetoc.php @@ -27,7 +27,7 @@ function handle($match, $state, $pos, Doku_Handler $handler) { global $INFO, $ID; // disable using cache - $handler->_addCall('nocache', array(), $pos); + $handler->addCall('nocache', array(), $pos); $data = parent::handle($match, $state, $pos, $handler); list($id, $topLv, $maxLv, $tocClass, $tocTitle) = $data;