From 2e7832782966a9c4b673fb23097ffce46fa19c55 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 17 Apr 2017 12:16:17 -0300 Subject: [PATCH] Bug 17855: Redirect to the installer if installation process is not done yet Signed-off-by: Alex Buckley Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- installer/onboarding.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installer/onboarding.pl b/installer/onboarding.pl index ca627260db..943def71ba 100755 --- a/installer/onboarding.pl +++ b/installer/onboarding.pl @@ -18,6 +18,7 @@ # along with Koha; if not, see . use Modern::Perl; +use C4::Context; use C4::InstallAuth; use CGI qw ( -utf8 ); use C4::Output; @@ -36,6 +37,11 @@ use Koha::IssuingRules; my $input = new CGI; my $step = $input->param('step'); +unless ( C4::Context->preference('Version') ) { + print $input->redirect("/cgi-bin/koha/installer/install.pl"); + exit; +} + #Getting the appropriate template to display to the user my ( $template, $loggedinuser, $cookie ) = C4::InstallAuth::get_template_and_user( -- 2.39.5