X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=installer%2Finstall.pl;h=dc01dc64c7a40d04c4f5171dd0e36caba9427875;hb=9e686e023f957e29ba32f84d667014a69f196706;hp=d9feac4b4373c634ac8b6cedf0758528938248dc;hpb=7535f2bfa32c7398bfe0baa619bdfa6abf1320b2;p=koha.git diff --git a/installer/install.pl b/installer/install.pl index d9feac4b43..dc01dc64c7 100755 --- a/installer/install.pl +++ b/installer/install.pl @@ -4,7 +4,7 @@ use strict; use warnings; use diagnostics; -use InstallAuth; +use C4::InstallAuth; use CGI; use IPC::Cmd; @@ -27,7 +27,7 @@ if ( defined($language) ) { } ( $template, $loggedinuser, $cookie ) = get_template_and_user( { - template_name => "installer/step" . ( $step ? $step : 1 ) . ".tmpl", + template_name => "installer/step" . ( $step ? $step : 1 ) . ".tt", query => $query, type => "intranet", authnotrequired => 0, @@ -189,7 +189,6 @@ elsif ( $step && $step == 3 ) { } elsif ( $op && $op eq 'finish' ) { $installer->set_version_syspref(); - $installer->set_indexing_engine(0); # use Zebra # Installation is finished. # We just deny anybody access to install @@ -242,7 +241,7 @@ elsif ( $step && $step == 3 ) { $template->param( "frameworksloop" => $fwklist ); $template->param( "marcflavour" => ucfirst($marcflavour)); - my ($sample_defaulted_to_en, $levellist) = $installer->sample_data_sql_list($langchoice, $marcflavour); + my ($sample_defaulted_to_en, $levellist) = $installer->sample_data_sql_list($langchoice); $template->param( "en_sample_data" => $sample_defaulted_to_en); $template->param( "levelloop" => $levellist ); $template->param( "$op" => 1 ); @@ -383,8 +382,6 @@ elsif ( $step && $step == 3 ) { ); } } - - $dbh->disconnect; } } else { @@ -400,8 +397,8 @@ else { if ( $rq->execute ) { my ($version) = $rq->fetchrow; if ($version) { - $query->redirect("install.pl?step=3"); - exit; + print $query->redirect("/cgi-bin/koha/installer/install.pl?step=3"); + exit; } } }