Removing duplicate directory separator when looking for locale search paths, closes #1854

This commit is contained in:
Jose Lorenzo Rodriguez 2011-07-27 17:41:25 -04:30
parent 402934fa4d
commit 25682db434

View file

@ -277,7 +277,7 @@ class I18n {
foreach ($plugins as $plugin) {
$pluginDomain = Inflector::underscore($plugin);
if ($pluginDomain === $domain) {
$searchPaths[] = CakePlugin::path($plugin) . DS . 'Locale' . DS;
$searchPaths[] = CakePlugin::path($plugin) . 'Locale' . DS;
$searchPaths = array_reverse($searchPaths);
break;
}