[Koha-patches] [PATCH] [bug #2827] better language check
Nahuel Angelinetti
nahuel.angelinetti at biblibre.com
Thu Nov 27 14:43:21 CET 2008
This patch use a regexp instead 'eq' to find if french is an opaclanguage.
---
misc/cronjobs/build_browser_and_cloud.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/misc/cronjobs/build_browser_and_cloud.pl b/misc/cronjobs/build_browser_and_cloud.pl
index f4546e9..263d886 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();
}
--
1.5.6.3
More information about the Koha-patches
mailing list