From 2f0cbf7e0aee37bce34087804cd4fa95f45327d1 Mon Sep 17 00:00:00 2001 From: aegypius Date: Thu, 30 Jan 2014 11:18:26 +0100 Subject: [PATCH] Fixes symfony 2.1 incompatibility Translations has been introduced in symfony security component in symfony 2.2 (symfony/symfony@963a1d7b81b4c083d031b629a8bfb933fdf6eea8) --- Finder/TranslationFinder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Finder/TranslationFinder.php b/Finder/TranslationFinder.php index 076a6b6d..d31c0e23 100644 --- a/Finder/TranslationFinder.php +++ b/Finder/TranslationFinder.php @@ -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; } }