Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
# along with Koha; if not, see <http://www.gnu.org/licenses>.
use Modern::Perl;
+use C4::Context;
use C4::InstallAuth;
use CGI qw ( -utf8 );
use C4::Output;
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(