[TASK] Remove outdated IE6 condition in base tag

Related #10502
This commit is contained in:
Guido Schmechel 2022-10-03 12:53:25 +02:00
parent 4fa10aab5f
commit ec77efd25a

View File

@ -851,13 +851,6 @@ PHP;
*/
public static function get_base_tag($contentGeneratedSoFar)
{
$base = Director::absoluteBaseURL();
// Is the document XHTML?
if (preg_match('/<!DOCTYPE[^>]+xhtml/i', $contentGeneratedSoFar ?? '')) {
return "<base href=\"$base\" />";
} else {
return "<base href=\"$base\"><!--[if lte IE 6]></base><![endif]-->";
}
return '<base href="' . Director::absoluteBaseURL() . '" />';
}
}