From 5042f54129e07a98f4d8e679c48a9589f2621c81 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 2 Nov 2021 15:44:22 +0100 Subject: [PATCH] wait #4850 @1 --- src/Compiler/Compiler.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Compiler/Compiler.php b/src/Compiler/Compiler.php index b61eede..a3921be 100644 --- a/src/Compiler/Compiler.php +++ b/src/Compiler/Compiler.php @@ -170,10 +170,8 @@ class Compiler implements ShouldQueue, ShouldBeUnique } $this->vdir = new VirtualDirectory($this->out); - if ($this->stub !== '') { - $this->vdir->copyDirectory($this->stub, '/'); - } + $this->prepareStub(); $this->compileContents(); $this->compileSearch(); $this->compileConfig(); @@ -183,6 +181,13 @@ class Compiler implements ShouldQueue, ShouldBeUnique stop_measure('Compile fluidbook'); } + public function prepareStub() + { + if ($this->stub !== '') { + $this->vdir->copyDirectory($this->stub, '/'); + } + } + public function compileContents() { for ($i = 1; $i <= $this->getPageCount(); $i++) { -- 2.39.5