aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-09-10 14:12:59 -0400
committerJoey Hess <joey@kitenet.net>2010-09-10 14:12:59 -0400
commit8c1a3595d49760ecedd7e56b6f2f2c5f2271b85d (patch)
treec36b3a75c44e1eeead1ad40f3d5004acc350c53f /IkiWiki/Plugin
parent23f88690092f4434335f0ae4df90fafbf58100eb (diff)
downloadikiwiki-8c1a3595d49760ecedd7e56b6f2f2c5f2271b85d.tar
ikiwiki-8c1a3595d49760ecedd7e56b6f2f2c5f2271b85d.tar.gz
avoid dups getting into @slavelanguages
This could happen if checkconfig was run twice, I think.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/po.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm
index d920d3648..ab39cca12 100644
--- 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;
}