Merged revisions 56253 via svnmerge from

svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.2.2

........
  r56253 | sminnee | 2008-06-16 12:05:35 +1200 (Mon, 16 Jun 2008) | 1 line
  
  Reference javascripts with absolute URLs so that IE6 doesn't break on base tags in certain situations
........


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@56912 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2008-06-25 04:02:07 +00:00
parent b3eafc24a2
commit 4d616597ad

View File

@ -182,7 +182,7 @@ class Requirements {
if(isset($_GET['debug_profile'])) Profiler::mark("Requirements::includeInHTML");
if(strpos($content, '</head') !== false && (Requirements::$javascript || Requirements::$css || Requirements::$customScript || Requirements::$customHeadTags)) {
$prefix = "";
$prefix = Director::absoluteBaseURL();
$requirements = '';
foreach(array_diff_key(self::$javascript,self::$blocked) as $file => $dummy) {