From 10af328ff1a4c5da585889c3c580fd5a579dea70 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Thu, 6 Nov 2008 14:08:33 +0100 Subject: [PATCH] po: syntax warning fix Signed-off-by: intrigeri --- IkiWiki/Plugin/po.pm | 6 +++--- 1 file 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';