diff options
author | intrigeri <intrigeri@boum.org> | 2008-11-06 14:08:33 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2008-11-06 14:08:33 +0100 |
commit | 10af328ff1a4c5da585889c3c580fd5a579dea70 (patch) | |
tree | d324e485a258f27653a53ff9f7996179e132e7a3 /IkiWiki/Plugin | |
parent | 7ad5c5cbdce6316b8d04fcbb3284b26e4b2c36da (diff) |
po: syntax warning fix
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/po.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 2f6c89b4d..9dc4061ef 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -115,9 +115,9 @@ sub checkconfig () { #{{{ ! defined $config{po_link_to}) { $config{po_link_to}='default'; } - elsif ($config{po_link_to} != 'default' - && $config{po_link_to} != 'current' - && $config{po_link_to} != 'negotiated') { + elsif (! grep { + $config{po_link_to} eq $_ + } ('default', 'current', 'negotiated')) { warn(sprintf(gettext('po_link_to=%s is not a valid setting, falling back to po_link_to=default'), $config{po_link_to})); $config{po_link_to}='default'; |