require Exporter;
use C4::Context;
use C4::Output; # to get the template
-use C4::Interface::CGI::Output;
-use C4::Circulation::Circ2; # getpatroninformation
+use C4::Members;
use C4::Koha;
use C4::Branch; # GetBranches
$borrowernumber = getborrowernumber($user);
my ( $borr, $alternativeflags ) =
- getpatroninformation( undef, $borrowernumber );
+ GetMemberDetails( $borrowernumber );
my @bordat;
$bordat[0] = $borr;
$template->param( "USER_INFO" => \@bordat );
$type = 'opac' unless $type;
my $dbh = C4::Context->dbh;
+ unless (C4::Context->preference('Version')){
+ print $query->redirect("/cgi-bin/koha/installer/install.pl?step=3");
+ exit;
+ }
my $timeout = C4::Context->preference('timeout');
$timeout = 600 unless $timeout;