From: Vincent Vanwaelscappel Date: Fri, 15 Oct 2021 07:45:06 +0000 (+0200) Subject: wip #4793 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=fb717f2fca6de071c11df3edee5d91dc8ca9255b;p=fluidbook_tools.git wip #4793 --- diff --git a/src/Compiler/Compiler.php b/src/Compiler/Compiler.php index bc78d8b..6d3a864 100644 --- a/src/Compiler/Compiler.php +++ b/src/Compiler/Compiler.php @@ -71,6 +71,11 @@ class Compiler implements ShouldQueue, ShouldBeUnique } } + public function getVirtualDirectory() + { + return $this->vdir; + } + /** * Execute the job. diff --git a/src/Links/Link.php b/src/Links/Link.php index 4af24cc..0924700 100644 --- a/src/Links/Link.php +++ b/src/Links/Link.php @@ -67,7 +67,7 @@ class Link /** * - * @var wsHTML5Compiler + * @var Compiler */ public $compiler; diff --git a/src/Links/SlideshowLink.php b/src/Links/SlideshowLink.php index 3ba4b1c..32c6ece 100644 --- a/src/Links/SlideshowLink.php +++ b/src/Links/SlideshowLink.php @@ -25,7 +25,7 @@ class SlideshowLink extends NormalLink $this->copyExternalDir($d['dir'], $d['fdir']); $this->path = $d['fdir']; - $this->path_absolute = $this->compiler->vdir->path($d['fdir']); + $this->path_absolute = $this->compiler->getVirtualDirectory()->path($d['fdir']); return '#/slideshow/' . $this->uid; } @@ -163,7 +163,7 @@ class SlideshowLink extends NormalLink $res .= '