Add doctype to web site
This commit is contained in:
parent
ce5717a7b7
commit
89af7b0e98
@ -667,6 +667,10 @@ function dolSavePageContent($filetpl, $object, $objectpage)
|
|||||||
$tplcontent.= "require_once DOL_DOCUMENT_ROOT.'/core/website.inc.php';\n";
|
$tplcontent.= "require_once DOL_DOCUMENT_ROOT.'/core/website.inc.php';\n";
|
||||||
$tplcontent.= "ob_start();\n";
|
$tplcontent.= "ob_start();\n";
|
||||||
$tplcontent.= "// END PHP ?>\n";
|
$tplcontent.= "// END PHP ?>\n";
|
||||||
|
if (! empty($conf->global->WEBSITE_FORCE_DOCTYPE_HTML5))
|
||||||
|
{
|
||||||
|
$tplcontent.= "<!DOCTYPE html>";
|
||||||
|
}
|
||||||
$tplcontent.= '<html'.($shortlangcode ? ' lang="'.$shortlangcode.'"':'').'>'."\n";
|
$tplcontent.= '<html'.($shortlangcode ? ' lang="'.$shortlangcode.'"':'').'>'."\n";
|
||||||
$tplcontent.= '<head>'."\n";
|
$tplcontent.= '<head>'."\n";
|
||||||
$tplcontent.= '<title>'.dol_string_nohtmltag($objectpage->title, 0, 'UTF-8').'</title>'."\n";
|
$tplcontent.= '<title>'.dol_string_nohtmltag($objectpage->title, 0, 'UTF-8').'</title>'."\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user