[Jifty-commit] r6224 - in jifty/trunk: lib/Jifty
Jifty commits
jifty-commit at lists.jifty.org
Sat Jan 10 00:32:15 EST 2009
Author: alexmv
Date: Sat Jan 10 00:32:14 2009
New Revision: 6224
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/I18N.pm
Log:
r40448 at kohr-ah: chmrr | 2009-01-10 00:31:21 -0500
* LML is not smart about seeing the same path more than once. This
is a problem if the app uses multiple plugins, which all point to
the Jifty share directory for their po files.
Modified: jifty/trunk/lib/Jifty/I18N.pm
==============================================================================
--- jifty/trunk/lib/Jifty/I18N.pm (original)
+++ jifty/trunk/lib/Jifty/I18N.pm Sat Jan 10 00:32:14 2009
@@ -157,6 +157,10 @@
push @ret, $dir ;
}
+ # Unique-ify paths
+ my %seen;
+ @ret = grep {not $seen{$_}++} @ret;
+
return ( map { $_ . '/*.po' } @ret );
}
More information about the Jifty-commit
mailing list