mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: Removed deprecated (and slower) eregi_replace
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@84164 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
07871f81e1
commit
38349122d6
@ -624,14 +624,14 @@ class Requirements_Backend {
|
||||
if($p1 !== false && $p1 > $p2) {
|
||||
$content = substr($content,0,$p1) . $jsRequirements . substr($content,$p1);
|
||||
} else {
|
||||
$content = eregi_replace("(</body[^>]*>)", $jsRequirements . "\\1", $content);
|
||||
$content = preg_replace("/(<\/body[^>]*>)/i", $jsRequirements . "\\1", $content);
|
||||
}
|
||||
|
||||
// Put CSS at the bottom of the head
|
||||
$content = eregi_replace("(</head[^>]*>)", $requirements . "\\1", $content);
|
||||
$content = preg_replace("/(<\/head[^>]*>)/i", $requirements . "\\1", $content);
|
||||
} else {
|
||||
$content = eregi_replace("(</head[^>]*>)", $requirements . "\\1", $content);
|
||||
$content = eregi_replace("(</head[^>]*>)", $jsRequirements . "\\1", $content);
|
||||
$content = preg_replace("/(<\/head[^>]*>)/i", $requirements . "\\1", $content);
|
||||
$content = preg_replace("/(<\/head[^>]*>)/i", $jsRequirements . "\\1", $content);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user