From 1a448c646dcc344487b7cb20aa8085d60be2714f Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Thu, 27 Nov 2008 14:43:21 +0100 Subject: [PATCH] better language check This patch use a regexp instead 'eq' to find if french is an opaclanguage. Signed-off-by: Henri-Damien LAURENT --- misc/cronjobs/build_browser_and_cloud.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/build_browser_and_cloud.pl b/misc/cronjobs/build_browser_and_cloud.pl index f4546e928c..263d8865e6 100755 --- a/misc/cronjobs/build_browser_and_cloud.pl +++ b/misc/cronjobs/build_browser_and_cloud.pl @@ -124,7 +124,7 @@ if ($browser_tag) { print "inserting datas in browser table\n"; # read existing classification table is possible my $classification; - if (C4::Context->preference('opaclanguages') eq 'fr' && $browser_tag eq '676' & $browser_subfield eq 'a') { + if (C4::Context->preference('opaclanguages') =~ m/^fr/i && $browser_tag eq '676' & $browser_subfield eq 'a') { $classification = dewey_french(); } -- 2.39.5