From: intrigeri Date: Thu, 6 Nov 2008 13:08:33 +0000 (+0100) Subject: po: syntax warning fix X-Git-Tag: 3.15~396 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=10af328ff1a4c5da585889c3c580fd5a579dea70;p=ikiwiki.git po: syntax warning fix Signed-off-by: intrigeri --- 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';