bug 2827: better language check

This patch use a regexp instead 'eq' to find if french is an opaclanguage.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
This commit is contained in:
Nahuel Angelinetti 2008-11-27 14:43:21 +01:00 committed by Galen Charlton
parent a43c8408e4
commit 72c35aa328
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}