fixing incorrect reference to opaclanguages syspref
authorJoshua Ferraro <jmf@liblime.com>
Fri, 4 Jan 2008 00:02:05 +0000 (19:02 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Fri, 4 Jan 2008 03:28:17 +0000 (21:28 -0600)
Signed-off-by: Joshua Ferraro <jmf@liblime.com>

installer/data/mysql/updatedatabase.pl

index 272fb31..d17e776 100755 (executable)
@@ -88,7 +88,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
 
 $DBversion = "3.00.00.003";
 if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
-    if (C4::Context->preference("opaclanguage") eq "fr") {
+    if (C4::Context->preference("opaclanguages") eq "fr") {
         $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ReservesNeedReturns','0','Si ce paramètre est mis à 1, une réservation posée sur un exemplaire présent sur le site devra être passée en retour pour être disponible. Sinon, elle sera automatiquement disponible, Koha considère que le bibliothécaire place la réservation en ayant le document en mains','','YesNo')");
     } else {
         $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ReservesNeedReturns','0','If set, a reserve done on an item available in this branch need a check-in, otherwise, a reserve on a specific item, that is on the branch & available is considered as available','','YesNo')");