From cd873352a9481c493ff2ca5587932e9f68dbeb86 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 16 Oct 2013 08:09:52 +0000 Subject: [PATCH] --- inc/ws/Util/packager/class.ws.packager.html.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/inc/ws/Util/packager/class.ws.packager.html.php b/inc/ws/Util/packager/class.ws.packager.html.php index c9c2eb4ad..f741d3a6c 100644 --- a/inc/ws/Util/packager/class.ws.packager.html.php +++ b/inc/ws/Util/packager/class.ws.packager.html.php @@ -100,6 +100,11 @@ class wsPackagerHTML extends wsPackager { $keywords = ''; } + $alwaysHTML5 = $this->book->parametres->alwaysHTML5; + if (is_null($alwaysHTML5) || !$alwaysHTML5) { + $alwaysHTML5 = 'false'; + } + // Stuffs to replace in html $toReplace = array('lang' => strtolower($this->book->lang), 'ga' => $ga, @@ -113,10 +118,11 @@ class wsPackagerHTML extends wsPackager { 'favicon' => $favicon, 'flashversion' => $this->getMinFlashVersion(), 'fv' => json_encode($this->getFlashvars()), - 'alwaysHTML5' => $this->book->parametres->alwaysHTML5, + 'alwaysHTML5' => $alwaysHTML5, 'keywords' => $keywords); + $this->origHTML = file_get_contents($this->vdir . '/index.html'); $this->origHTML = $this->replaceHTML($toReplace); -- 2.39.5