Skip to content

Commit

Permalink
Merge pull request #91 from le-phare/symfony-2.1-compatibility-fix
Browse files Browse the repository at this point in the history
Fixes symfony 2.1 incompatibility
  • Loading branch information
willdurand committed Jan 31, 2014
2 parents 470984c + 2f0cbf7 commit dee69aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Finder/TranslationFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ private function getLocations()

if (file_exists($dir = dirname($r->getFilename()).'/../../Resources/translations')) {
$locations[] = $dir;
} else {
} elseif (file_exists($dir = dirname($r->getFilename()).'/../Resources/translations')) {
// Symfony 2.4 and above
$locations[] = dirname($r->getFilename()).'/../Resources/translations';
$locations[] = $dir;
}
}

Expand Down

0 comments on commit dee69aa

Please sign in to comment.