Fixing database upgrade failure from koha.upgrade and setting language

This commit is contained in:
slef 2003-10-31 17:40:51 +00:00
parent 4d5274c4d9
commit a1a1bfc8fa
2 changed files with 3 additions and 2 deletions

View File

@ -1736,7 +1736,8 @@ Which language do you choose? |;
sub updatedatabase {
# At this point, $etcdir/koha.conf must exist, for C4::Context
$ENV{"KOHA_CONF"}=$etcdir.'/koha.conf.tmp';
$ENV{"KOHA_CONF"}=$etcdir.'/koha.conf';
if (! -e $ENV{"KOHA_CONF"}) { $ENV{"KOHA_CONF"}=$etcdir.'/koha.conf.tmp'; }
startsysout();
my $result=system ("perl -I $intranetdir/modules scripts/updater/updatedatabase");
if ($result) {

View File

@ -4,7 +4,7 @@
use strict; # please develop with the strict pragma
use Install;
$::language='en';
setlanguage('en');
###############################################
# SET THE etcdir ENVIRONMENT VAR INSTEAD #