From 0eca1e58f2033334ee6c9ce1ea56c0fbeb282052 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 --- installer/onboarding.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installer/onboarding.pl b/installer/onboarding.pl index ca62726..943def7 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.9.3