From 72c35aa3288a9bef74eb4c20a6dbc06a8a67c728 Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Thu, 27 Nov 2008 14:43:21 +0100 Subject: [PATCH] bug 2827: better language check This patch use a regexp instead 'eq' to find if french is an opaclanguage. Signed-off-by: Galen Charlton --- 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