From 8b35f9020e5dba56450be9f04126e68042dfc8aa Mon Sep 17 00:00:00 2001 From: Barry Chapman Date: Wed, 22 Feb 2012 07:50:41 -0500 Subject: [PATCH] Fixing mispositioned space before '.css'. It was causing the condition to never meet since you don't usually have spaces in the filenames in stylesheet links. --- views/helpers/asset.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/helpers/asset.php b/views/helpers/asset.php index 539f185..b35813b 100644 --- a/views/helpers/asset.php +++ b/views/helpers/asset.php @@ -97,7 +97,7 @@ function scripts_for_layout($types=array('js', 'css', 'codeblock')) { $scripts_for_layout[] = $resource; } } else if($type == 'codeblock') { - if(!stristr($resource, '.js') && !stristr($resource,' .css')) { + if(!stristr($resource, '.js') && !stristr($resource, '.css')) { $scripts_for_layout[] = $resource; } }