diff --git a/htdocs/core/lib/website.lib.php b/htdocs/core/lib/website.lib.php
index 1075a91ebc0..1864ca27bea 100644
--- a/htdocs/core/lib/website.lib.php
+++ b/htdocs/core/lib/website.lib.php
@@ -219,6 +219,7 @@ function dolWebsiteOutput($content, $contenttype = 'html', $containerid = '')
{
global $db, $langs, $conf, $user;
global $dolibarr_main_url_root, $dolibarr_main_data_root;
+ global $website;
global $includehtmlcontentopened;
$nbrep = 0;
@@ -244,8 +245,6 @@ function dolWebsiteOutput($content, $contenttype = 'html', $containerid = '')
}
elseif (defined('USEDOLIBARRSERVER')) // REPLACEMENT OF LINKS When page called from Dolibarr server
{
- global $website;
-
$content = str_replace('
diff --git a/htdocs/core/lib/website2.lib.php b/htdocs/core/lib/website2.lib.php
index ce1f27b49fc..33093fb953c 100644
--- a/htdocs/core/lib/website2.lib.php
+++ b/htdocs/core/lib/website2.lib.php
@@ -197,7 +197,7 @@ function dolSavePageContent($filetpl, Website $object, WebsitePage $objectpage)
}
// Add canonical reference
if ($object->virtualhost) {
- $tplcontent .= ''."\n";
+ $tplcontent .= ''."\n";
}
// Add manifest.json on homepage
$tplcontent .= 'use_manifest) { print \'\'."\n"; } ?>'."\n";