Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Bug in asset.php #13

Open
wants to merge 1 commit into from

1 participant

@barrychapman

There was a space before the .css inside the quotes: ' .css'. This was causing the condition to never meet.

@barrychapman barrychapman Fixing mispositioned space before '.css'. It was causing the conditio…
…n to never meet since you don't usually have spaces in the filenames in stylesheet links.
8b35f90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 22, 2012
  1. @barrychapman

    Fixing mispositioned space before '.css'. It was causing the conditio…

    barrychapman authored
    …n to never meet since you don't usually have spaces in the filenames in stylesheet links.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  views/helpers/asset.php
View
2  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;
}
}
Something went wrong with that request. Please try again.