Lines 27-33
use Koha::AuthorisedValues;
Link Here
|
27 |
use Koha::Illrequests; |
27 |
use Koha::Illrequests; |
28 |
use Koha::Libraries; |
28 |
use Koha::Libraries; |
29 |
|
29 |
|
30 |
my $cgi = CGI->new; |
30 |
our $cgi = CGI->new; |
31 |
my $illRequests = Koha::Illrequests->new; |
31 |
my $illRequests = Koha::Illrequests->new; |
32 |
|
32 |
|
33 |
# Grab all passed data |
33 |
# Grab all passed data |
Lines 35-40
my $illRequests = Koha::Illrequests->new;
Link Here
|
35 |
# of 'my' |
35 |
# of 'my' |
36 |
our $params = $cgi->Vars(); |
36 |
our $params = $cgi->Vars(); |
37 |
|
37 |
|
|
|
38 |
# Leave immediately if ILLModule is disabled |
39 |
unless ( C4::Context->preference('ILLModule') ) { |
40 |
print $cgi->redirect("/cgi-bin/koha/errors/404.pl"); |
41 |
exit; |
42 |
} |
43 |
|
38 |
my $op = $params->{method} || 'illlist'; |
44 |
my $op = $params->{method} || 'illlist'; |
39 |
|
45 |
|
40 |
my ( $template, $patronnumber, $cookie ) = get_template_and_user( { |
46 |
my ( $template, $patronnumber, $cookie ) = get_template_and_user( { |
41 |
- |
|
|