mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
parent
4fa10aab5f
commit
ec77efd25a
@ -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() . '" />';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user