From 2e8a572875e508933fe2f2f6f37db6384bf59629 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 3 Mar 2009 02:26:36 +0000 Subject: [PATCH] BUGFIX Requirements were ignored if only CSS requirements were present due to bug in Requirements::includeInHTML() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@72374 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/Requirements.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Requirements.php b/core/Requirements.php index 8009abcf6..9d16f0647 100644 --- a/core/Requirements.php +++ b/core/Requirements.php @@ -529,7 +529,7 @@ class Requirements_Backend { function includeInHTML($templateFile, $content) { if(isset($_GET['debug_profile'])) Profiler::mark("Requirements::includeInHTML"); - if(strpos($content, 'javascript || $this->customCSS || $this->customScript || $this->customHeadTags)) { + if(strpos($content, 'css || $this->javascript || $this->customCSS || $this->customScript || $this->customHeadTags)) { $requirements = ''; $jsRequirements = '';