forked from Wavyzz/dolibarr
Fix duplicate html tag
This commit is contained in:
@@ -451,9 +451,9 @@ function dolSavePageContent($filetpl, $object, $objectpage)
|
|||||||
$tplcontent.= '<!-- Include link to CSS file -->'."\n";
|
$tplcontent.= '<!-- Include link to CSS file -->'."\n";
|
||||||
$tplcontent.= '<link rel="stylesheet" href="styles.css.php?websiteid='.$object->id.'" type="text/css" />'."\n";
|
$tplcontent.= '<link rel="stylesheet" href="styles.css.php?websiteid='.$object->id.'" type="text/css" />'."\n";
|
||||||
$tplcontent.= '<!-- Include HTML header from common file -->'."\n";
|
$tplcontent.= '<!-- Include HTML header from common file -->'."\n";
|
||||||
$tplcontent.= '<?php print file_get_contents(DOL_DATA_ROOT."/website/'.$object->ref.'/htmlheader.html"); ?>'."\n";
|
$tplcontent.= '<?php print preg_replace(\'/<\/?html>/ims\', \'\', file_get_contents(DOL_DATA_ROOT."/website/'.$object->ref.'/htmlheader.html")); ?>'."\n";
|
||||||
$tplcontent.= '<!-- Include HTML header from page header block -->'."\n";
|
$tplcontent.= '<!-- Include HTML header from page header block -->'."\n";
|
||||||
$tplcontent.= preg_replace('/<\/?html>/', '', $objectpage->htmlheader)."\n";
|
$tplcontent.= preg_replace('/<\/?html>/ims', '', $objectpage->htmlheader)."\n";
|
||||||
$tplcontent.= '</head>'."\n";
|
$tplcontent.= '</head>'."\n";
|
||||||
|
|
||||||
$tplcontent.= '<!-- File generated by Dolibarr website module editor -->'."\n";
|
$tplcontent.= '<!-- File generated by Dolibarr website module editor -->'."\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user