From 3052589cbda557081c2d91d86a14a7b59b5c6fb5 Mon Sep 17 00:00:00 2001 From: stormframe Date: Sat, 15 Aug 2026 09:36:56 +0200 Subject: [PATCH] Fix BatchEdit compatibility with Mort Replace the deprecated idx_getIndex() call and removed inc/indexer.php dependency with the new dokuwiki\Search\Indexer API. Use Indexer::getAllPages() to retrieve the page index and filter out pages that no longer exist. --- engine.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/engine.php b/engine.php index be51f76..4467bc0 100644 --- a/engine.php +++ b/engine.php @@ -1124,9 +1124,8 @@ private function getPageIndex($namespace) { throw new BatcheditException('err_idxaccess'); } - require_once(DOKU_INC . 'inc/indexer.php'); - - $index = idx_getIndex('page', ''); + $indexer = new \dokuwiki\Search\Indexer(); + $index = $indexer->getAllPages(true); if (count($index) == 0) { throw new BatcheditException('err_emptyidx');