From 1b1ce9116849cf633c053cdc7e70eb0b037a0ac8 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 4 May 2023 16:42:12 +0200 Subject: [PATCH] wait #5910 @0.75 --- app/Fluidbook/Links.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Fluidbook/Links.php b/app/Fluidbook/Links.php index b000b3fde..7491afea1 100644 --- a/app/Fluidbook/Links.php +++ b/app/Fluidbook/Links.php @@ -145,10 +145,12 @@ class Links } $dir = self::getLinksDir($book_id); + $versions = self::getLinksVersions($book_id); + $file = Files::firstThatExists($dir . '/' . $time . '.links3.gz', $dir . '/' . $time . '.links.gz'); $metafile = Files::firstThatExists($dir . '/' . $time . '.meta3.gz', $dir . '/' . $time . '.meta.gz'); if ($time === 'latest' && !file_exists($file)) { - $versions = self::getLinksVersions($book_id); + foreach ($versions as $version => $m) { $lf = Files::firstThatExists($dir . '/' . $version . '.links3.gz', $dir . '/' . $version . '.links.gz'); $mf = Files::firstThatExists($dir . '/' . $version . '.meta3.gz', $dir . '/' . $version . '.meta.gz'); -- 2.39.5