Skip to content

Commit

Permalink
Merge pull request #6 from mheleniak/patch-2
Browse files Browse the repository at this point in the history
fixed ImagineLoader - cache prefix was not used in urls
  • Loading branch information
lsmith77 committed Oct 12, 2011
2 parents 5f5bc6a + 135f37d commit 04dcee8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Routing/ImagineLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public function load($resource, $type = null)
foreach ($this->filters as $filter => $config) {
$pattern = $this->cachePrefix;
if (isset($config['path'])) {
$pattern = '/'.trim($config['path'], '/');
$pattern .= '/'.trim($config['path'], '/');
} elseif ('' !== $filter) {
$pattern = '/'.$filter;
$pattern .= '/'.$filter;
}

$routes->add('_imagine_'.$filter, new Route(
Expand Down

0 comments on commit 04dcee8

Please sign in to comment.