From fa8be29cb925bdd69ef2f07e77d2863b26bf03c8 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 7 Sep 2023 16:19:04 +0200 Subject: [PATCH] wip #6188 --- app/Models/FluidbookDocument.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Models/FluidbookDocument.php b/app/Models/FluidbookDocument.php index 75a309c8f..7ec5a3927 100644 --- a/app/Models/FluidbookDocument.php +++ b/app/Models/FluidbookDocument.php @@ -380,7 +380,8 @@ class FluidbookDocument extends ToolboxModel public function _getHightlightFilePath($page, $mode = 'standard') { - return $this->path('texts/p' . $page . '.fby'); + $dir = $mode !== 'standard' ? '/' . $mode : ''; + return $this->path('texts' . $dir . '/p' . $page . '.fby'); } public function _getTextPath($page, $type = self::TEXT_PLAIN, $mode = 'standard', $extractionMethod = 'fluidbook', $ignoreSeparators = '') @@ -391,7 +392,8 @@ class FluidbookDocument extends ToolboxModel } $prefix = self::_getTextFilePrefix($extractionMethod); - return $this->path('texts/' . $sepFolder . $prefix . $type . $page . '.txt'); + $dir = $mode !== 'standard' ? '/' . $mode : ''; + return $this->path('texts/' . $dir . $sepFolder . $prefix . $type . $page . '.txt'); } public function getPDFSource($type = 'crop'): string -- 2.39.5