From 3fff7f7251774f684e9cc93f7e4f8c78b70fb65b Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Mon, 12 Dec 2016 18:34:18 +0000 Subject: [PATCH] #1028 --- inc/ws/Util/html5/class.ws.html5.compiler.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/inc/ws/Util/html5/class.ws.html5.compiler.php b/inc/ws/Util/html5/class.ws.html5.compiler.php index 5da607136..980eba6c7 100644 --- a/inc/ws/Util/html5/class.ws.html5.compiler.php +++ b/inc/ws/Util/html5/class.ws.html5.compiler.php @@ -756,11 +756,14 @@ class wsHTML5Compiler { } $allpages = range(0, $this->book->parametres->pages + 1); - $allpages[] = 'aftersearch'; + if ($this->book->parametres->themeEnableAfterSearch) { + $allpages[] = 'aftersearch'; + } $allpages[] = 'background'; $allpages[] = 'archives'; foreach ($allpages as $i) { + $c = ''; $cc = ''; if (isset($pages[$i])) { -- 2.39.5