Skip to content

Commit

Permalink
Merge pull request #14 from mheleniak/patch-4
Browse files Browse the repository at this point in the history
allow-all default setting for liip_imagine.formats
  • Loading branch information
lsmith77 committed Oct 14, 2011
2 parents 48c714f + 958d711 commit e63a73b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Imagine/DataLoader/FileSystemLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function splitPath($path)
$name = explode('.', $path);
if (count($name) > 1) {
$format = array_pop($name);
if (!in_array($format, $this->formats)) {
if (!empty($this->formats) && !in_array($format, $this->formats)) {
return array($path, null);
}
$name = implode('.', $name);
Expand Down

0 comments on commit e63a73b

Please sign in to comment.