projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23f8869
)
avoid dups getting into @slavelanguages
author
Joey Hess
<joey@kitenet.net>
Fri, 10 Sep 2010 18:12:59 +0000
(14:12 -0400)
committer
Joey Hess
<joey@kitenet.net>
Fri, 10 Sep 2010 18:12:59 +0000
(14:12 -0400)
This could happen if checkconfig was run twice, I think.
IkiWiki/Plugin/po.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/po.pm
b/IkiWiki/Plugin/po.pm
index d920d36486a7aa88dfbafc5d8bcbcd1049827812..ab39cca121b63f780b31f68d94991a517f5afa5a 100644
(file)
--- a/
IkiWiki/Plugin/po.pm
+++ b/
IkiWiki/Plugin/po.pm
@@
-152,7
+152,7
@@
sub checkconfig () {
if (ref $config{po_slave_languages} eq 'ARRAY') {
foreach my $pair (@{$config{po_slave_languages}}) {
my ($code, $name)=splitlangpair($pair);
- if (defined $code) {
+ if (defined $code
&& ! exists $slavelanguages{$code}
) {
push @slavelanguages, $code;
$slavelanguages{$code} = $name;
}