From: Vincent Vanwaelscappel Date: Thu, 6 Jul 2023 13:21:42 +0000 (+0200) Subject: wip #6066 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=719ecb4f9a82bbe14c5c2c11d49d791327423a53;p=fluidbook-toolbox.git wip #6066 @0.25 --- diff --git a/app/Http/Controllers/Admin/Operations/FluidbookPublication/PreviewOperation.php b/app/Http/Controllers/Admin/Operations/FluidbookPublication/PreviewOperation.php index 0d81c9a19..212b72be6 100644 --- a/app/Http/Controllers/Admin/Operations/FluidbookPublication/PreviewOperation.php +++ b/app/Http/Controllers/Admin/Operations/FluidbookPublication/PreviewOperation.php @@ -61,7 +61,7 @@ trait PreviewOperation return $check; } - if (null === $time || ((null === $path || $path === 'index.html') && $time < (time() - 60) && !$nointerface && !$shortLoading)) { + if (null === $time || ((null === $path || $path === 'index.html') && $time>0 && $time < (time() - 60) && !$nointerface && !$shortLoading)) { $v = ($version === 'online') ? '' : $version . '/'; $url = backpack_url($segment . '/preview/' . $v . $id . '_' . $hash . '_' . time()) . '/' . $q; return $this->loadingCompile($url, $id, $hash);