From: Vincent Vanwaelscappel Date: Fri, 22 Mar 2024 09:28:47 +0000 (+0100) Subject: wait #6822 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c5e2d244bb72392ebb5e1cffabd4881a55e80c33;p=fluidbook-toolbox.git wait #6822 @0.5 --- diff --git a/app/Fluidbook/Compiler/Compiler.php b/app/Fluidbook/Compiler/Compiler.php index 9b0aa93fa..ce22cc82f 100644 --- a/app/Fluidbook/Compiler/Compiler.php +++ b/app/Fluidbook/Compiler/Compiler.php @@ -555,8 +555,8 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError // We need to be able to reference both navOrder and navOrderH so convert both to arrays // We also make sure there are no empty items in the arrays (see: http://php.net/manual/en/function.array-filter.php#111091) - $this->config->navOrder = array_filter(array_map('trim', explode(',', $this->config->navOrder)), 'strlen'); - $this->config->navOrderH = array_filter(array_map('trim', explode(',', $this->config->navOrderH)), 'strlen'); + $this->config->navOrder = array_values(array_filter(array_map('trim', explode(',', $this->config->navOrder)), 'strlen')); + $this->config->navOrderH = array_values(array_filter(array_map('trim', explode(',', $this->config->navOrderH)), 'strlen')); $this->config->standalone = $this->standalone; if ($this->config->phonegap) { @@ -1250,7 +1250,6 @@ class Compiler extends Base implements CompilerInterface, IVirtualDirectoryError } - protected function replaceVariables($str) { $replace = ['%title%' => $this->config->title];