Skip to content

Commit

Permalink
MDL-45084 theme: File was not chunked on IE
Browse files Browse the repository at this point in the history
This only applied when themedesignermode was disabled, because the
first chunk is 0, but 0 is resolved to false. We needed to compare
$chunk with null in order to know if it was set.
  • Loading branch information
Frederic Massart committed Apr 14, 2014
1 parent 069fe26 commit 034dbd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theme/styles.php
Expand Up @@ -198,7 +198,7 @@
// let's ignore legacy IE breakage here too.
css_send_uncached_css($csscontent);

} else if ($chunk and file_exists($candidatesheet)) {
} else if ($chunk !== null and file_exists($candidatesheet)) {
// Greetings stupid legacy IEs!
css_send_cached_css($candidatesheet, $etag);

Expand Down

0 comments on commit 034dbd7

Please sign in to comment.