From: Vincent Vanwaelscappel Date: Thu, 29 Jan 2026 10:29:33 +0000 (+0100) Subject: wip #7950 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3f5aff4a47d2ffe862a7df710c54befb8325260f;p=fluidbook-toolbox.git wip #7950 @0.5 --- diff --git a/app/Fluidbook/Compiler/Compiler.php b/app/Fluidbook/Compiler/Compiler.php index 48bf0101d..a33d188dd 100644 --- a/app/Fluidbook/Compiler/Compiler.php +++ b/app/Fluidbook/Compiler/Compiler.php @@ -2755,7 +2755,12 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError public function addSearchWord($to, $page, $array) { - + $words = Text::splitWords(mb_strtolower(Text::deaccent($to))); + foreach ($words as $word) { + $w = $this->config->get('searchWords.' . $word, []); + $w[] = ['page' => $page, 'coords' => $array]; + $this->config->set('searchWords.' . $word, $w); + } } }