From: vincent@cubedesigners.com Date: Tue, 24 Jul 2018 11:10:29 +0000 (+0000) Subject: fix #2154 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a31b7e9d990e4ccf1348fa076ce2d65d1956b647;p=cubeextranet.git fix #2154 @0:05 --- diff --git a/inc/ws/Util/html5/master/class.ws.html5.seo.php b/inc/ws/Util/html5/master/class.ws.html5.seo.php index 56e60160b..4f7c72424 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.seo.php +++ b/inc/ws/Util/html5/master/class.ws.html5.seo.php @@ -29,11 +29,7 @@ class wsHTML5Seo $p->ua = ''; if ($this->compiler->book->parametres->googleAnalytics != '') { $codes = explode(',', $this->compiler->book->parametres->googleAnalytics); - $p->ua .= "\n\t"; + $p->ua .= ""; } if ($this->compiler->book->parametres->googleAnalyticsCustom != '') { $p->ua .= $this->compiler->book->parametres->googleAnalyticsCustom; @@ -86,7 +82,9 @@ class wsHTML5Seo } $res = trim(file_get_contents(wsDocument::getDir($infos['document_id']) . $prefix . 'h' . $infos['document_page'] . '.txt')); - $res = preg_replace('|\<\/div\>$|', '', $res); + if (strpos($res, '
') !== 0) { + $res = preg_replace('|\<\/div\>$|', '', $res); + } return $res; }